apiVersion: apps/v1 kind: Deployment metadata: name: caddy namespace: caddy-namespace spec: replicas: 1 selector: matchLabels: app: caddy template: metadata: labels: app: caddy spec: containers: - name: caddy image: caddy:2.6.2 ports: - containerPort: 12080 - containerPort: 12443 volumeMounts: - name: caddy-config mountPath: /etc/caddy - name: caddy-data mountPath: /data/caddy resources: requests: memory: "64Mi" cpu: "250m" limits: memory: "128Mi" cpu: "500m" livenessProbe: httpGet: path: / port: 12080 initialDelaySeconds: 10 periodSeconds: 5 readinessProbe: httpGet: path: / port: 12080 initialDelaySeconds: 10 periodSeconds: 5 volumes: - name: caddy-config configMap: name: caddy-config items: - key: Caddyfile path: Caddyfile - name: caddy-data persistentVolumeClaim: claimName: caddy-data-pvc