36 lines
771 B
YAML
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
|