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

32 lines
541 B
YAML

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