25 lines
485 B
YAML
25 lines
485 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
|