72 lines
1.7 KiB
YAML
72 lines
1.7 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: taiga-protected
|
|
namespace: {{ .namespace }}
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
component: protected
|
|
template:
|
|
metadata:
|
|
labels:
|
|
component: protected
|
|
spec:
|
|
securityContext:
|
|
runAsNonRoot: false
|
|
runAsUser: 0
|
|
runAsGroup: 0
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: taiga-protected
|
|
image: taigaio/taiga-protected:6.10.1
|
|
ports:
|
|
- name: http
|
|
containerPort: 8003
|
|
protocol: TCP
|
|
env:
|
|
- name: SECRET_KEY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: taiga-secrets
|
|
key: secretKey
|
|
- name: MAX_AGE
|
|
value: "360"
|
|
resources:
|
|
limits:
|
|
cpu: 250m
|
|
memory: 256Mi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 64Mi
|
|
volumeMounts:
|
|
- name: taiga-media
|
|
mountPath: /taiga/media
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8003
|
|
initialDelaySeconds: 15
|
|
periodSeconds: 30
|
|
timeoutSeconds: 5
|
|
failureThreshold: 3
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8003
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 10
|
|
timeoutSeconds: 3
|
|
failureThreshold: 3
|
|
securityContext:
|
|
readOnlyRootFilesystem: false
|
|
volumes:
|
|
- name: taiga-media
|
|
persistentVolumeClaim:
|
|
claimName: taiga-media
|
|
restartPolicy: Always
|