34 lines
711 B
YAML
34 lines
711 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: pi-proxy
|
|
labels:
|
|
app: pi-proxy
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: pi-proxy
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: pi-proxy
|
|
spec:
|
|
containers:
|
|
- image: nginx:1.17-alpine
|
|
name: nginx
|
|
ports:
|
|
- containerPort: 80
|
|
name: http
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: "/etc/nginx/"
|
|
readOnly: true
|
|
- name: cache-volume
|
|
mountPath: /data/nginx/cache
|
|
volumes:
|
|
- name: config
|
|
configMap:
|
|
name: pi-proxy-configmap
|
|
- name: cache-volume
|
|
emptyDir: {}
|