kubernetes-yaml/learn/learn-kubernetes-master/kiamol/ch09/vweb-strategies/vweb-rollingUpdate-v2.yaml

30 lines
487 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: vweb
labels:
kiamol: ch09
spec:
replicas: 3
selector:
matchLabels:
app: vweb
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 0
maxSurge: 1
template:
metadata:
labels:
app: vweb
version: v2
spec:
containers:
- name: web
image: kiamol/ch09-vweb:v2
ports:
- name: http
containerPort: 80