Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #186 config maps
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: mywebserver
- labels:
- app: httpd
- spec:
- replicas:
- strategy:
- # don't worry about this part (will get filled later)
- selector:
- matchLabels:
- app: httpd
- template:
- metadata:
- labels:
- app: httpd
- spec:
- containers:
- - name: myhttpd
- image: httpd:2
- ports:
- - containerPort: 80
- volumeMounts:
- - name: demovol
- mountPath: /data
- - name: demo-configmap-vol #(copy from line 38)
- mountPath: /etc/config
- volumes:
- - name: demovol
- hostPath:
- path: /data
- type: Directory
- - name: demo-configmap-vol
- configMap:
- - name: demo-configmap
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement