diff --git a/StatefullSet&DaemonSet/nginx-rollingupdate.yml b/StatefullSet&DaemonSet/nginx-rollingupdate.yml index cd8c9de..d96df69 100644 --- a/StatefullSet&DaemonSet/nginx-rollingupdate.yml +++ b/StatefullSet&DaemonSet/nginx-rollingupdate.yml @@ -1,11 +1,35 @@ apiVersion: apps/v1 kind: Deployment -metadata: labels: run: nginx name: wdrozenie-nginx +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 \ No newline at end of file + type: RollingUpdate + rollingUpdate: + maxSurge: 1 + maxUnavailable: 1 + minReadySeconds: 5 + revisionHistoryLimit: 5 + template: + metadata: + labels: + run: nginx + spec: + containers: + - name: nginx + image: nginx:1.18 + ports: + - containerPort: 80 + readinessProbe: + initialDelaySeconds: 5 + periodSeconds: 5 + successThreshold: 1 + httpGet: + path: / + port: 80 \ No newline at end of file