mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-09-17 02:12:55 +02:00
fa4dfff2ec
This reverts commit 392aed9a65.
54 lines
1.2 KiB
YAML
54 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: snappymail
|
|
labels:
|
|
app: snappymail
|
|
spec:
|
|
replicas: 1
|
|
strategy:
|
|
type: Recreate
|
|
selector:
|
|
matchLabels:
|
|
app: snappymail
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: snappymail
|
|
spec:
|
|
containers:
|
|
- name: snappymail
|
|
image: djmaze/snappymail:latest
|
|
ports:
|
|
- containerPort: 8888
|
|
protocol: TCP
|
|
env:
|
|
- name: TZ
|
|
value: Europe/Amsterdam
|
|
volumeMounts:
|
|
- name: snappymail-data
|
|
mountPath: /var/lib/snappymail
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8888
|
|
initialDelaySeconds: 30
|
|
periodSeconds: 10
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /
|
|
port: 8888
|
|
initialDelaySeconds: 10
|
|
periodSeconds: 5
|
|
resources:
|
|
requests:
|
|
memory: "128Mi"
|
|
cpu: "100m"
|
|
limits:
|
|
memory: "512Mi"
|
|
cpu: "500m"
|
|
volumes:
|
|
- name: snappymail-data
|
|
persistentVolumeClaim:
|
|
claimName: snappymail-data
|