diff --git a/charts/portainer/templates/deployment.yaml b/charts/portainer/templates/deployment.yaml index 310aed9..e72cb11 100644 --- a/charts/portainer/templates/deployment.yaml +++ b/charts/portainer/templates/deployment.yaml @@ -43,6 +43,9 @@ spec: secret: secretName: {{ .Values.mtls.existingSecret }} {{- end }} + {{- with .Values.extraVolumes }} + {{- toYaml . | nindent 8 }} + {{- end }} containers: - name: {{ .Chart.Name }} {{- if .Values.enterpriseEdition.enabled }} @@ -86,6 +89,9 @@ spec: mountPath: /certs/mtls readOnly: true {{- end }} + {{- with .Values.extraVolumeMounts }} + {{- toYaml . | nindent 12 }} + {{- end }} ports: {{- if not .Values.tls.force }} - name: http diff --git a/charts/portainer/values.yaml b/charts/portainer/values.yaml index 1643837..24be739 100644 --- a/charts/portainer/values.yaml +++ b/charts/portainer/values.yaml @@ -26,6 +26,19 @@ serviceAccount: annotations: {} name: portainer-sa-clusteradmin + +# -- List of extra mounts to add (normally used with extraVolumes) +extraVolumeMounts: [] +# - mountPath: /etc/ssl/certs/ca-certificates.crt +# name: host-ca-certificates +# readOnly: true + +# -- List of extra volumes to add +extraVolumes: [] +# - hostPath: +# path: /etc/ssl/certs/ca-certificates.crt +# name: host-ca-certificates + # This flag provides the ability to enable or disable RBAC-related resources during the deployment of the Portainer application # If you are using Portainer to manage the K8s cluster it is deployed to, this flag must be set to true localMgmt: true