Skip to content

Commit b29c673

Browse files
committed
Allow adding extra volumes to openstack-exporter deployment
credit to the original author: Ondrej Vasko <[email protected]> ref: openstack-exporter#11 Signed-off-by: Matej Feder <[email protected]>
1 parent fe69421 commit b29c673

File tree

2 files changed

+23
-2
lines changed

2 files changed

+23
-2
lines changed

charts/prometheus-openstack-exporter/templates/deployment.yaml

+8-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,11 @@ spec:
3232
{{- . | toYaml | nindent 8 }}
3333
{{- end }}
3434
volumeMounts:
35-
- name: openstack-config
36-
mountPath: /etc/openstack
35+
- name: openstack-config
36+
mountPath: /etc/openstack
37+
{{- if .Values.extraVolumeMounts }}
38+
{{- toYaml .Values.extraVolumeMounts | nindent 8 }}
39+
{{- end }}
3740
ports:
3841
- name: metrics
3942
containerPort: 9180
@@ -46,6 +49,9 @@ spec:
4649
- name: openstack-config
4750
secret:
4851
secretName: openstack-config
52+
{{- if .Values.extraVolumes }}
53+
{{- toYaml .Values.extraVolumes | nindent 6 }}
54+
{{- end }}
4955
{{- with .Values.hostAliases }}
5056
hostAliases:
5157
{{ toYaml . | indent 8 }}

charts/prometheus-openstack-exporter/values.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,21 @@ multicloud:
5050
#commonLabels:
5151
# prometheus.io/monitor: "true"
5252

53+
# Add extra volumes mounted to openstack-exporter deployment
54+
# Useful for mounting CA Certificates
55+
#extraVolumes:
56+
#- name: company-ca
57+
# configMap:
58+
# name: my-company-ca
59+
# items:
60+
# - key: ca
61+
# path: my-company-ca
62+
#
63+
#extraVolumeMounts:
64+
#- mountPath: /etc/ssl/certs/my-company-ca
65+
# name: company-ca
66+
# subPath: my-company-ca
67+
5368
# Generate a secret for clouds.yaml
5469
# Doc: https://github.com/openstack-exporter/openstack-exporter#openstack-configuration
5570
clouds_yaml_config: |

0 commit comments

Comments
 (0)