Newer
Older
apiVersion: apps/v1
kind: Deployment
metadata:
name: www-libre-sh
labels:
app.kubernetes.io/component: web
spec:
replicas: 2
selector:
matchLabels:
app: www-libre-sh
template:
metadata:
labels:
app: www-libre-sh
app.kubernetes.io/component: web
spec:
affinity:
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- topologyKey: kubernetes.io/hostname
labelSelector:
matchLabels:
app: www-libre-sh
image: caddy
resources:
limits:
memory: "128Mi"
cpu: "500m"
ports:
- containerPort: 80
name: http
volumeMounts:
- name: config
mountPath: /etc/caddy/Caddyfile
subPath: Caddyfile
- name: turbovanityurls
image: golift/turbovanityurls
resources:
limits:
memory: "128Mi"
cpu: "500m"
volumeMounts:
- name: config
mountPath: /etc/turbovanityurls/config.yaml
subPath: config.yaml
volumes:
- name: config
configMap:
name: www-libre-sh-config