34 lines
717 B
YAML
34 lines
717 B
YAML
|
apiVersion: apps/v1
|
||
|
kind: DaemonSet
|
||
|
metadata:
|
||
|
name: todo-proxy
|
||
|
labels:
|
||
|
kiamol: ch09
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: todo-proxy
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: todo-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: todo-proxy-configmap
|
||
|
- name: cache-volume
|
||
|
emptyDir: {}
|