summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/aai-deployment-configmap.yaml9
-rw-r--r--templates/aai-deployment.yaml5
-rw-r--r--templates/hbase-deployment.yaml2
3 files changed, 13 insertions, 3 deletions
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"
diff --git a/templates/hbase-deployment.yaml b/templates/hbase-deployment.yaml
index acb29da..3c1949c 100644
--- a/templates/hbase-deployment.yaml
+++ b/templates/hbase-deployment.yaml
@@ -41,7 +41,7 @@ spec:
volumes:
- name: hbase-data
hostPath:
- path: /dockerdata-nfs/onap/aai/hbase
+ path: /dockerdata-nfs/{{ .Values.nsPrefix }}/aai/hbase
- name: localtime
hostPath:
path: /etc/localtime