File tree Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Expand file tree Collapse file tree 1 file changed +21
-11
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,10 @@ metadata:
99spec :
1010 replicas : 2
1111 strategy :
12- type : RollingUpdate
13- rollingUpdate :
14- maxUnavailable : 25%
15- maxSurge : 1
12+ type : RollingUpdate
13+ rollingUpdate :
14+ maxUnavailable : 25%
15+ maxSurge : 1
1616 selector :
1717 matchLabels :
1818 app : frontend
@@ -26,23 +26,33 @@ spec:
2626 image : thoughts_frontend:v3.7
2727 imagePullPolicy : Never
2828 ports :
29- - containerPort : 8000
29+ - containerPort : 8000
3030 env :
3131 - name : THOUGHTS_BACKEND_URL
3232 value : http://thoughts-service
3333 - name : USER_BACKEND_URL
3434 value : http://users-service
35+ volumeMounts :
36+ - name : public-key
37+ mountPath : " /opt/keys/"
3538 livenessProbe :
3639 exec :
37- command :
38- - curl
39- - http://localhost:8000/
40+ command :
41+ - curl
42+ - http://localhost:8000/
4043 initialDelaySeconds : 5
4144 periodSeconds : 30
4245 readinessProbe :
4346 exec :
44- command :
45- - curl
46- - http://localhost:8000/
47+ command :
48+ - curl
49+ - http://localhost:8000/
4750 initialDelaySeconds : 5
4851 periodSeconds : 30
52+ volumes :
53+ - name : public-key
54+ secret :
55+ secretName : thoughts-secrets
56+ items :
57+ - key : public_key.pub
58+ path : public_key.pub
You can’t perform that action at this time.
0 commit comments