Files
lambda_local_runner/ctrl/k8s/base/gateway.yaml
2026-05-13 15:21:37 -03:00

54 lines
1.0 KiB
YAML

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