AETHER-2826 Adding sample demo-configurtion
Change-Id: I3247e7b2e41bdc7b1adfce886f3608f08df3470d
diff --git a/chronos-exporter/templates/deployment.yaml b/chronos-exporter/templates/deployment.yaml
index 0ad83eb..a840040 100644
--- a/chronos-exporter/templates/deployment.yaml
+++ b/chronos-exporter/templates/deployment.yaml
@@ -45,6 +45,8 @@
fieldPath: spec.nodeName
args:
- "/usr/local/bin/chronos-exporter"
+ - "--config"
+ - {{ .Values.configfile }}
ports:
- name: metrics
containerPort: 2112
@@ -60,7 +62,14 @@
port: 2112
initialDelaySeconds: 15
periodSeconds: 20
+ volumeMounts:
+ - name: exporter-config
+ mountPath: /etc/chronos-exporter/configs
+ readOnly: true
volumes:
- name: secret
secret:
- secretName: {{ template "chronos-exporter.fullname" . }}-secret
\ No newline at end of file
+ secretName: {{ template "chronos-exporter.fullname" . }}-secret
+ - name: exporter-config
+ configMap:
+ name: {{ template "chronos-exporter.fullname" . }}-config