KCI-1/Proxy-Cache/caching-pod.yaml
2024-08-18 19:25:28 +01:00

36 lines
771 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: mirror-proxy
labels:
app: mirror-proxy
spec:
replicas: 3
selector:
matchLabels:
app: mirror-proxy
template:
metadata:
labels:
app: mirror-proxy
spec:
containers:
- name: nginx
image: nginx:1.27.1
ports:
- containerPort: 80
name: http
volumeMounts:
- name: tmpfscache
mountPath: /cache
- name: nginxconfig
mountPath: /etc/nginx/nginx.conf
subPath: nginx.conf
readOnly: true
volumes:
- name: tmpfscache
emptyDir: {}
- name: nginxconfig
configMap:
name: mirror-proxy-cfg