kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch04/todo-list/todo-web-dev.yaml

25 lines
485 B
YAML
Raw Normal View History

apiVersion: apps/v1
kind: Deployment
metadata:
name: todo-web
spec:
selector:
matchLabels:
app: todo-web
template:
metadata:
labels:
app: todo-web
spec:
containers:
- name: web
image: kiamol/ch04-todo-list
volumeMounts:
- name: config
mountPath: "/app/config"
readOnly: true
volumes:
- name: config
configMap:
name: todo-web-config-dev