Skip to content

Commit

Permalink
add securityContext to deployment (#183)
Browse files Browse the repository at this point in the history
  • Loading branch information
ravisingal authored Apr 13, 2023
1 parent ef920a7 commit e4a685f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions helm/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,10 @@ spec:
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8}}
{{- end }}
{{- with .Values.securityContext }}
securityContext:
{{- toYaml . | nindent 8}}
{{- end }}
containers:
- name: {{ .Chart.Name }}
Expand Down
2 changes: 2 additions & 0 deletions helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@ affinity: {}

topologySpreadConstraints: []

securityContext: {}

javaOpts: "-XX:InitialRAMPercentage=50.0 -XX:MaxRAMPercentage=75.0"

livenessProbe:
Expand Down

0 comments on commit e4a685f

Please sign in to comment.