feat: allow to enable or disable some pod privileges (#82)
This commit is contained in:
1 parent
969f7b8885
commit
39cb96db5d
2 files changed
+16
-1
No files matched your search
@@ -36,9 +36,15 @@ spec:
|
||||
serviceAccountName: {{ include "jellyfin.serviceAccountName" . }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
{{- if .Values.jellyfin.enableDLNA }}
|
||||
{{- if or .Values.jellyfin.enableDLNA .Values.podPrivileges.hostNetwork }}
|
||||
hostNetwork: true
|
||||
{{- end }}
|
||||
{{- if .Values.podPrivileges.hostIPC }}
|
||||
hostIPC: true
|
||||
{{- end }}
|
||||
{{- if .Values.podPrivileges.hostPID }}
|
||||
hostPID: true
|
||||
{{- end }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
|
||||
@@ -175,6 +175,15 @@ tolerations: []
|
||||
# -- Affinity rules for pod scheduling.
|
||||
affinity: {}
|
||||
|
||||
# -- Privileged pod settings for advanced use cases
|
||||
podPrivileges:
|
||||
# -- Enable hostIPC namespace. Required for NVIDIA MPS (Multi-Process Service) GPU sharing. See: https://docs.nvidia.com/deploy/mps/index.html
|
||||
hostIPC: false
|
||||
# -- Enable hostNetwork. Allows pod to use the host's network namespace.
|
||||
hostNetwork: false
|
||||
# -- Enable hostPID namespace. Allows pod to see processes on the host.
|
||||
hostPID: false
|
||||
|
||||
jellyfin:
|
||||
# -- Enable DLNA. Requires host network. See: https://jellyfin.org/docs/general/networking/dlna.html
|
||||
enableDLNA: false
|
||||
|
||||
Reference in new issue
Block a user