File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ items:
19
19
type : NodePort
20
20
selector :
21
21
app : spring-boot-kubernetes-mysql
22
+ - apiVersion : v1
23
+ kind : ServiceAccount
24
+ metadata :
25
+ name : spring-boot-kubernetes-mysql
26
+ labels :
27
+ account : spring-boot-kubernetes-mysql
22
28
- apiVersion : apps/v1
23
29
kind : Deployment
24
30
metadata :
36
42
app : spring-boot-kubernetes-mysql
37
43
version : 5.0.0
38
44
spec :
45
+ serviceAccountName : spring-boot-kubernetes-mysql
39
46
containers :
40
47
- name : spring-boot-kubernetes-mysql
41
48
image : ashutoshsahoo/spring-boot-kubernetes-mysql:5.0.0
@@ -69,3 +76,13 @@ items:
69
76
secretKeyRef :
70
77
name : mysql-secret
71
78
key : MYSQL_PASSWORD
79
+ securityContext :
80
+ # runAsUser: 1000
81
+ # readOnlyRootFilesystem: true
82
+ allowPrivilegeEscalation : false
83
+ livenessProbe :
84
+ httpGet :
85
+ path : /api/v1/actuator/health
86
+ port : 8080
87
+ initialDelaySeconds : 15
88
+ periodSeconds : 5
You can’t perform that action at this time.
0 commit comments