From 34fb0cf4e6625ad918710f982399c7e8cf10242b Mon Sep 17 00:00:00 2001 From: mayankg2703 Date: Mon, 5 Feb 2018 07:12:32 +0000 Subject: config seg aai deployment service Change-Id: Ic7572ff99d04af94e9cbab695f0597ae211fb583 Issue-ID: OOM-521 Signed-off-by: mayankg2703 --- templates/aai-deployment-configmap.yaml | 9 +++++++++ templates/aai-deployment.yaml | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 templates/aai-deployment-configmap.yaml (limited to 'templates') diff --git a/templates/aai-deployment-configmap.yaml b/templates/aai-deployment-configmap.yaml new file mode 100644 index 0000000..40d4909 --- /dev/null +++ b/templates/aai-deployment-configmap.yaml @@ -0,0 +1,9 @@ +#{{ if not .Values.disableAaiAaiService }} +apiVersion: v1 +kind: ConfigMap +metadata: + name: aai-deployment-configmap + namespace: {{ .Values.nsPrefix }}-aai +data: +{{ tpl (.Files.Glob "resources/config/haproxy/*").AsConfig . | indent 2 }} +#{{ end }} diff --git a/templates/aai-deployment.yaml b/templates/aai-deployment.yaml index a65cf44..e0e422b 100644 --- a/templates/aai-deployment.yaml +++ b/templates/aai-deployment.yaml @@ -42,6 +42,7 @@ spec: - mountPath: /dev/log name: aai-service-log - mountPath: /usr/local/etc/haproxy/haproxy.cfg + subPath: haproxy.cfg name: haproxy-cfg ports: - containerPort: 8080 @@ -59,8 +60,8 @@ spec: hostPath: path: "/dev/log" - name: haproxy-cfg - hostPath: - path: "/dockerdata-nfs/{{ .Values.nsPrefix }}/aai/haproxy/haproxy.cfg" + configMap: + name: aai-deployment-configmap restartPolicy: Always imagePullSecrets: - name: "{{ .Values.nsPrefix }}-docker-registry-key" -- cgit 1.2.3-korg