config seg aai deployment service 17/30217/2
authormayankg2703 <mayank.gupta@amdocs.com>
Mon, 5 Feb 2018 07:12:32 +0000 (07:12 +0000)
committerAlexis de Talhouët <alexis.de_talhouet@bell.ca>
Mon, 5 Feb 2018 15:21:33 +0000 (15:21 +0000)
Change-Id: Ic7572ff99d04af94e9cbab695f0597ae211fb583
Issue-ID: OOM-521
Signed-off-by: mayankg2703 <mayank.gupta@amdocs.com>
kubernetes/aai/resources/config/haproxy/haproxy.cfg [moved from kubernetes/config/docker/init/src/config/aai/haproxy/haproxy.cfg with 100% similarity]
kubernetes/aai/templates/aai-deployment-configmap.yaml [new file with mode: 0644]
kubernetes/aai/templates/aai-deployment.yaml

diff --git a/kubernetes/aai/templates/aai-deployment-configmap.yaml b/kubernetes/aai/templates/aai-deployment-configmap.yaml
new file mode 100644 (file)
index 0000000..40d4909
--- /dev/null
@@ -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 }}
index a65cf44..e0e422b 100644 (file)
@@ -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"