Skip to content

Commit 209a8c0

Browse files
feat: add podLabels and securitycontext by default (#26)
1 parent 9091bd2 commit 209a8c0

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

charts/komoplane/templates/deployment.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ spec:
2020
{{- end }}
2121
labels:
2222
{{- include "app.selectorLabels" . | nindent 8 }}
23+
{{- with .Values.podLabels }}
24+
{{- toYaml . | nindent 8 }}
25+
{{- end }}
2326
spec:
2427
{{- with .Values.imagePullSecrets }}
2528
imagePullSecrets:

charts/komoplane/values.yaml

+10-2
Original file line numberDiff line numberDiff line change
@@ -45,11 +45,19 @@ updateStrategy:
4545
type: RollingUpdate
4646

4747

48+
podLabels: {}
4849
podAnnotations: {}
4950

50-
podSecurityContext: {}
51+
podSecurityContext:
52+
fsGroup: 2000
5153

52-
securityContext: {}
54+
securityContext:
55+
readOnlyRootFilesystem: true
56+
runAsNonRoot: true
57+
runAsUser: 1000
58+
capabilities:
59+
drop:
60+
- ALL
5361

5462
service:
5563
type: ClusterIP

0 commit comments

Comments
 (0)