File tree 2 files changed +47
-0
lines changed
2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ apiVersion : apps/v1
2
+ kind : Deployment # 1
3
+ metadata :
4
+ name : coit-frontend
5
+ labels :
6
+ app : coit-frontend
7
+ spec :
8
+ selector :
9
+ matchLabels :
10
+ app : coit-frontend
11
+ replicas : 1 # 2
12
+ minReadySeconds : 15
13
+ strategy :
14
+ type : RollingUpdate # 3
15
+ rollingUpdate :
16
+ maxUnavailable : 1 # 4
17
+ maxSurge : 1 # 5
18
+ template :
19
+ metadata :
20
+ labels :
21
+ app : coit-frontend # 6
22
+ spec :
23
+ volumes :
24
+ - name : nginx-root
25
+ persistentVolumeClaim :
26
+ claimName : coit-frontend-fast
27
+ containers :
28
+ - image : coitlearning/coit-frontend:latest
29
+ imagePullPolicy : IfNotPresent # 7
30
+ name : coit-frontend
31
+ ports :
32
+ - containerPort : 80
33
+ volumeMounts :
34
+ - mountPath : /var/www/html
35
+ name : nginx-root
Original file line number Diff line number Diff line change
1
+ apiVersion : v1
2
+ kind : Service # 1
3
+ metadata :
4
+ name : coit-frontend-lb
5
+ spec :
6
+ type : LoadBalancer
7
+ ports :
8
+ - port : 80 # 3
9
+ protocol : TCP # 4
10
+ targetPort : 80 # 5
11
+ selector : # 6
12
+ app : coit-frontend # 7
You can’t perform that action at this time.
0 commit comments