kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch06/lab/solution/web-deployment.yaml

20 lines
328 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: numbers-web
labels:
kiamol: ch06-lab
spec:
replicas: 2
selector:
matchLabels:
app: numbers-web
template:
metadata:
labels:
app: numbers-web
spec:
containers:
- name: web
image: kiamol/ch03-numbers-web