35 lines
730 B
YAML
35 lines
730 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: tmpfs_cache
|
|
mountPath: /cache
|
|
- name: nginx_config
|
|
mountPath: /etc/nginx
|
|
readOnly: true
|
|
volumes:
|
|
- name: tmpfs_cache
|
|
emptyDir: {}
|
|
- name: nginx_config
|
|
configMap:
|
|
name: mirror-proxy-cfg
|