63 lines
1.5 KiB
YAML
63 lines
1.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: fuj-management
|
|
namespace: fuj
|
|
labels:
|
|
app: fuj-management
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: fuj-management
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: fuj-management
|
|
spec:
|
|
imagePullSecrets:
|
|
- name: gitea-registry
|
|
containers:
|
|
- name: fuj-management
|
|
image: gitea.home.hrajfrisbee.cz/kacerr/fuj-management:0.38-go
|
|
ports:
|
|
- containerPort: 8080
|
|
name: http
|
|
env:
|
|
- name: PORT
|
|
value: "8080"
|
|
- name: TZ
|
|
value: Europe/Prague
|
|
- name: CREDENTIALS_PATH
|
|
value: /secrets/credentials.json
|
|
resources:
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
limits:
|
|
cpu: 200m
|
|
memory: 128Mi
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 2
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8080
|
|
initialDelaySeconds: 5
|
|
periodSeconds: 30
|
|
timeoutSeconds: 5
|
|
volumeMounts:
|
|
- name: bot-credentials
|
|
mountPath: /secrets
|
|
readOnly: true
|
|
volumes:
|
|
- name: bot-credentials
|
|
secret:
|
|
secretName: fuj-management-bot-credentials |