Skip to content

Commit df52e3c

Browse files
authored
feat: Add ability to define securityContext (#99)
Signed-off-by: Marco Maurer <mkilchhofer@users.noreply.github.com>
1 parent 7414793 commit df52e3c

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

helm/templates/service.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ spec:
8585
- name: SSL_CERT_DIR
8686
value: {{ .Values.image.sslCertDir }}
8787
{{- end }}
88+
{{- with .Values.securityContext }}
89+
securityContext:
90+
{{- toYaml . | nindent 12 }}
91+
{{- end }}
8892
{{- if .Values.volumeMounts }}
8993
volumeMounts: {{- toYaml .Values.volumeMounts | nindent 12 }}
9094
{{- end }}

helm/values.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,3 +89,15 @@ tolerations:
8989
# labels -- The pod labels for coder-logstream-kube. See:
9090
# https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/
9191
labels: {}
92+
93+
# securityContext -- Container-level security context
94+
# See: https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
95+
securityContext: {}
96+
# allowPrivilegeEscalation: false
97+
# capabilities:
98+
# drop:
99+
# - ALL
100+
# readOnlyRootFilesystem: true
101+
# runAsNonRoot: true
102+
# seccompProfile:
103+
# type: RuntimeDefault

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy