This commit is contained in:
Jarosław Karcewicz 2022-04-05 19:57:21 +02:00
parent 56f1a6edc4
commit 25a8ad8011

View File

@ -1,11 +1,35 @@
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
metadata: labels: run: nginx name: wdrozenie-nginx metadata:
labels:
run: nginx
name: wdrozenie-nginx
spec: spec:
replicas: 3 replicas: 3
selector: selector:
matchLabels: matchLabels:
run: nginx run: nginx
strategy: strategy:
type: RollingUpdate rollingUpdate: maxSurge: 1 maxUnavailable: 1 minReadySeconds: 5 revisionHistoryLimit: 5 template: metadata: labels: run: nginx spec: containers: type: RollingUpdate
- image: nginx:1.18 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