kubernetes/StatefullSet&DaemonSet/nginx-rollingupdate.yml
2022-04-05 19:45:59 +02:00

11 lines
2.4 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata: labels: run: nginx name: wdrozenie-nginx
spec:
replicas: 3
selector:
matchLabels:
run: nginx
strategy:
type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 1 minReadySeconds: 5 revisionHistoryLimit: 5 template: metadata: labels: run: nginx spec: containers:
- image: nginx:1.18