Files
k8scd/sogo/deployment.yaml
T
Ruben Hensen a6835b3dc4 Add SOGo
2026-01-26 01:05:58 +01:00

67 lines
1.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: sogo
namespace: sogo
labels:
app: sogo
spec:
replicas: 1
strategy:
type: Recreate
selector:
matchLabels:
app: sogo
template:
metadata:
labels:
app: sogo
spec:
containers:
- name: sogo
image: sonroyaalmerol/docker-sogo:latest
ports:
- containerPort: 80
name: http
env:
- name: POSTGRES_PASSWORD
valueFrom:
secretKeyRef:
name: sogo-postgres-credentials
key: password
- name: TZ
value: "Europe/Amsterdam"
volumeMounts:
- name: config
mountPath: /etc/sogo/sogo.conf.d/
- name: data
mountPath: /srv/lib/sogo
resources:
requests:
memory: "512Mi"
cpu: "200m"
limits:
memory: "1Gi"
cpu: "1000m"
livenessProbe:
httpGet:
path: /SOGo
port: 80
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /SOGo
port: 80
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
volumes:
- name: config
configMap:
name: sogo-config
- name: data
persistentVolumeClaim:
claimName: sogo-data