.
This commit is contained in:
parent
56f1a6edc4
commit
25a8ad8011
@ -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
|
Loading…
Reference in New Issue
Block a user