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

28 lines
566 B
YAML

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
items:
- key: config.json
path: config.json