Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdf52e3c

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

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)

[8]ページ先頭

©2009-2025 Movatter.jp