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:
1919 type : NodePort
2020 selector :
2121 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
2228 - apiVersion : apps/v1
2329 kind : Deployment
2430 metadata :
3642 app : spring-boot-kubernetes-mysql
3743 version : 5.0.0
3844 spec :
45+ serviceAccountName : spring-boot-kubernetes-mysql
3946 containers :
4047 - name : spring-boot-kubernetes-mysql
4148 image : ashutoshsahoo/spring-boot-kubernetes-mysql:5.0.0
@@ -69,3 +76,13 @@ items:
6976 secretKeyRef :
7077 name : mysql-secret
7178 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