File tree 1 file changed +17
-12
lines changed
1 file changed +17
-12
lines changed Original file line number Diff line number Diff line change 1
- # cat primeiro_deployments_nginx_helm .yml
1
+ # cat deployment_nginx02 .yml
2
2
apiVersion : apps/v1
3
3
kind : Deployment
4
4
metadata :
5
+ generation : 1
5
6
labels :
6
- app : giropops
7
- run : nginx
8
- name : primeiro-deployment
7
+ app : nginx02
8
+ name : nginx02
9
9
namespace : default
10
10
spec :
11
11
progressDeadlineSeconds : 600
12
12
replicas : 1
13
13
revisionHistoryLimit : 10
14
14
selector :
15
15
matchLabels :
16
- run : nginx
16
+ app : nginx02
17
+ strategy :
18
+ rollingUpdate :
19
+ maxSurge : 25%
20
+ maxUnavailable : 25%
21
+ type : RollingUpdate
22
+ template :
23
+ metadata :
24
+ labels :
25
+ app : nginx02
17
26
spec :
18
27
containers :
19
28
- image : nginx
20
29
imagePullPolicy : Always
21
- name : nginx2
22
- ports :
23
- - containerPort : 80
24
- protocol : TCP
25
- resources : {}
30
+ name : nginx
31
+ resources :
26
32
terminationMessagePath : /dev/termination-log
27
33
terminationMessagePolicy : File
28
34
dnsPolicy : ClusterFirst
29
35
restartPolicy : Always
30
36
schedulerName : default-scheduler
31
- securityContext : {}
32
- terminationGracePeriodSeconds : 30
37
+ securityContext : {}
You can’t perform that action at this time.
0 commit comments