Chart now has extraVolumes and extraVolumeMounts values, but configmap create only single from configs section.
Content configmap mount at /srv/cfg directory with all content.
volumeMounts:
- name: configs
mountPath: /srv/cfg
{{- if .Values.extraVolumeMounts }}
{{- include "privatebin.tplvalues.render" (dict "value" .Values.extraVolumeMounts "context" $) | nindent 12 }}
{{- end }}
volumes:
- name: configs
configMap:
name: {{ include "privatebin.fullname" . }}-configs
So if needed separate configs for nginx - use external configmaps, not from chart. It is no usable, because i need create external configmap manual
extraVolumes: []
# Optionally specify extra list of additional volumes for PrivateBin pod.
# Example
# - name: nginx-params
# configMap:
# name: nginx-params
extraVolumeMounts: []
# Optionally specify extra list of additional volumeMounts for PrivateBin pod.
# Example
# - mountPath: /etc/nginx/server.d
# name: nginx-params
Lets include externalobjects for create objects from chart, for example
cat extra-manifests.yaml
{{ range .Values.extraObjects }}
---
{{ if typeIs "string" . }}
{{- tpl . $ }}
{{- else }}
{{- tpl (toYaml .) $ }}
{{- end }}
{{ end }}
and add values:
extraObjects: []
# - apiVersion: v1
# kind: ConfigMap
# metadata:
# name: nginx-config
# namespace: nginx-configmap
# data:
# nginx.conf: |
# events {}
#
# http {
# server {
# listen 80;
# server_name localhost;
# root /usr/share/nginx/html;
# index index.html index.htm;
#
# location = /50x.html {
# root /usr/share/nginx/html;
# }
# }
# }
Chart now has extraVolumes and extraVolumeMounts values, but configmap create only single from configs section.
Content configmap mount at /srv/cfg directory with all content.
So if needed separate configs for nginx - use external configmaps, not from chart. It is no usable, because i need create external configmap manual
Lets include externalobjects for create objects from chart, for example
cat extra-manifests.yaml
and add values: