apps/obsidian/resources/caddy_deployment.yaml

39 lines
809 B
YAML
Raw Normal View History

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: caddy-hack
spec:
replicas: 2
selector:
matchLabels:
app.kubernetes.io/name: caddy-hack
template:
metadata:
labels:
app.kubernetes.io/name: caddy-hack
spec:
containers:
- name: caddy
image: caddy
command:
- caddy
args:
- run
- -c
- /etc/caddy/Caddyfile
ports:
- containerPort: 8080
protocol: TCP
name: web
resources:
limits:
cpu: 10m
memory: 30Mi
volumeMounts:
- name: config
mountPath: /etc/caddy
volumes:
- name: config
configMap:
name: caddy-hack