kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch07/lab/pi/web.yaml

24 lines
417 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: pi-web
labels:
kiamol: ch07-lab
spec:
replicas: 2
selector:
matchLabels:
app: pi-web
template:
metadata:
labels:
app: pi-web
spec:
containers:
- image: kiamol/ch05-pi
command: ["/scripts/startup.sh"]
name: web
ports:
- containerPort: 80
name: http