forked from prawinkorvi/Docs
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathRollingUpdate
More file actions
53 lines (47 loc) · 832 Bytes
/
RollingUpdate
File metadata and controls
53 lines (47 loc) · 832 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Deployment Yaml file without Rollingupdate option
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: nginx
name: nginx-deploy
spec:
replicas: 4
selector:
matchLabels:
run: nginx
template:
metadata:
labels:
run: nginx
spec:
containers:
- image: nginx:1.14
name: nginx
Deployment.yaml file with Rollingupdate option
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
run: nginx
name: nginx-deploy
spec:
replicas: 4
selector:
matchLabels:
run: nginx
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 0
maxUnavailable: 1
minReadySeconds: 5
revisionHistoryLimit: 10
template:
metadata:
labels:
run: nginx
spec:
containers:
- image: nginx:1.14
name: nginx