Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
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
4 changes: 4 additions & 0 deletions deploy/helm/developers-cms/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@ spec:
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.podSecurityContext }}
securityContext:
{{- toYaml . | nindent 8 }}
{{- end }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.app.image.repository }}:{{ .Values.app.image.tag }}"
Expand Down
6 changes: 6 additions & 0 deletions deploy/helm/developers-cms/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@

replicaCount: 1

# Security context del pod. fsGroup rende il PVC dei media scrivibile dall'utente
# del container (l'immagine gira come uid/gid 1001): senza, il volume Azure è
# montato root:root e Payload fallisce gli upload ("problem while uploading the file").
podSecurityContext:
fsGroup: 1001

app:
image:
repository: ghcr.io/italia/developers-cms
Expand Down
Loading