Skip to content

Commit

Permalink
added extraVolumes and extraVolumeMounts to kibana
Browse files Browse the repository at this point in the history
  • Loading branch information
AronKa-SAG committed Jun 14, 2024
1 parent aa2e8d4 commit e7b0b47
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
14 changes: 12 additions & 2 deletions apigateway/helm/templates/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,19 @@ spec:
initContainers:
{{- toYaml .Values.kibana.extraInitContainers | nindent 8 }}
{{- end }}
{{- if .Values.kibana.tls.enabled }}
{{- if or (eq .Values.kibana.tls.enabled true) (eq .Values.kibana.extraVolumes true) }}
volumes:
{{- if .Values.kibana.tls.enabled }}
- name: elasticsearch-certs
secret:
secretName: {{ .Values.kibana.tls.secretName }}
items:
- key: {{ .Values.kibana.tls.trustStoreName }}
path: truststore.p12
{{- end }}
{{- if .Values.kibana.extraVolumes }}
{{- toYaml .Values.kibana.extraVolumes | nindent 8 }}
{{- end }}
{{- end }}
containers:
- name: kibana
Expand Down Expand Up @@ -124,12 +129,17 @@ spec:
livenessProbe:
{{- toYaml .Values.kibana.livenessProbe | nindent 12 }}
{{- end }}
{{- if .Values.kibana.tls.enabled }}
{{- if or (eq .Values.kibana.tls.enabled true) (eq .Values.kibana.extraVolumeMounts true) }}
volumeMounts:
{{- if .Values.kibana.tls.enabled }}
- name: elasticsearch-certs
mountPath: /usr/share/kibana/config/elasticsearch-certs/truststore.p12
subPath: truststore.p12
readOnly: true
{{- end }}
{{- if .Values.kibana.extraVolumeMounts }}
{{- toYaml .Values.kibana.extraVolumeMounts | nindent 12 }}
{{- end }}
{{- end }}
{{- if .Values.kibana.extraContainers }}
{{- toYaml .Values.kibana.extraContainers | nindent 8 }}
Expand Down
6 changes: 6 additions & 0 deletions apigateway/helm/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,12 @@ kibana:
# -- The securityContext for kibana container.
securityContext: {}

# -- The definition of extra volumes for kibana.
extraVolumes: []

# -- The definition of extra volumeMounts for kibana.
extraVolumeMounts: []

# -- The definition of extra containers for kibana.
extraContainers: []

Expand Down

0 comments on commit e7b0b47

Please sign in to comment.