Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to define pod level SecurityContext #85

Merged
merged 4 commits into from
Mar 1, 2025
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Add option to define pod level SecurityContext
  • Loading branch information
nebula-it committed Feb 11, 2025
commit d19c2dcf67ae03b1df89430453af72560ee7b443
4 changes: 4 additions & 0 deletions charts/frigate/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- if .Values.podSecurityContext }}
securityContext:
{{- toYaml .Values.podSecurityContext | nindent 8 }}
{{- end }}
{{- if or .Values.extraInitContainers (and .Values.persistence.config.enabled .Values.persistence.config.ephemeralWritableConfigYaml) }}
initContainers:
{{- with .Values.extraInitContainers }}
Expand Down
15 changes: 14 additions & 1 deletion charts/frigate/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ resources: {}
# memory: 128Mi
# gpu.intel.com/i915: 1

# -- Set Security Context
# -- Set Frigate Container Security Context
securityContext: {}
# capabilities:
# drop:
Expand All @@ -262,6 +262,19 @@ securityContext: {}
# runAsUser: 1000
# privileged: true

# -- Set Pod level Security Context
# -- the container level securiy context defined above
# -- will override it for frigate container
podSecurityContext: {}
# capabilities:
# drop:
# - ALL
# readOnlyRootFilesystem: true
# runAsNonRoot: true
# runAsUser: 1000
# fsGroup: 1000
# privileged: true

# -- Node Selector configuration
nodeSelector: {}

Expand Down
Loading