kubedeploy-k3s/apps/sftpgo/base/deployment.yaml
2024-05-14 20:47:55 +02:00

87 lines
2.0 KiB
YAML

---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app.kubernetes.io/instance: sftpgo
app.kubernetes.io/name: sftpgo
app: sftpgo
name: sftpgo
namespace: sftpgo
spec:
strategy:
type: Recreate
replicas: 1
selector:
matchLabels:
app.kubernetes.io/instance: sftpgo
app.kubernetes.io/name: sftpgo
template:
metadata:
labels:
app.kubernetes.io/instance: sftpgo
app.kubernetes.io/name: sftpgo
spec:
containers:
- args:
- sftpgo
- serve
image: ghcr.io/drakkan/sftpgo:latest
imagePullPolicy: IfNotPresent
# livenessProbe:
# httpGet:
# path: /healthz
# port: telemetry
name: sftpgo
ports:
- containerPort: 2022
name: sftp
protocol: TCP
- containerPort: 8080
name: http
protocol: TCP
- containerPort: 8081
name: webdav
protocol: TCP
- containerPort: 10000
name: telemetry
protocol: TCP
# readinessProbe:
# httpGet:
# path: /healthz
# port: telemetry
resources:
limits:
cpu: "0.1"
memory: "400M"
securityContext: {}
volumeMounts:
- mountPath: /etc/sftpgo
name: data
subPath: etc
readOnly: false
- mountPath: /srv/sftpgo
name: data
subPath: srv
readOnly: false
- mountPath: /var/lib/sftpgo
name: data
subPath: lib
readOnly: false
- mountPath: /consume
name: consume
subPath: consume
readOnly: false
hostNetwork: false
securityContext: {}
serviceAccountName: sftpgo
volumes:
- name: data
persistentVolumeClaim:
claimName: sftpgo
- name: config
configMap:
name: sftpgo
- name: consume
persistentVolumeClaim:
claimName: consume-pvc