apiVersion: apps/v1 kind: Deployment metadata: name: gateway namespace: eth spec: replicas: 1 selector: matchLabels: app: gateway template: metadata: labels: app: gateway spec: containers: - name: caddy image: caddy:2-alpine ports: - containerPort: 80 name: http volumeMounts: - name: config mountPath: /etc/caddy readOnly: true readinessProbe: tcpSocket: port: 80 initialDelaySeconds: 2 periodSeconds: 10 resources: requests: memory: 32Mi cpu: 50m limits: memory: 128Mi volumes: - name: config configMap: name: gateway-config --- apiVersion: v1 kind: Service metadata: name: gateway namespace: eth spec: selector: app: gateway ports: - name: http port: 80 targetPort: 80