summaryrefslogtreecommitdiffstats
path: root/kubernetes/robot/templates
diff options
context:
space:
mode:
authorvaibhav_16dec <vaibhav.chopra@amdocs.com>2018-01-17 15:40:59 +0000
committervaibhav_16dec <vaibhav.chopra@amdocs.com>2018-03-14 04:23:39 +0000
commit0947cdf7e780641e1604ef3752483fa4d29efb3e (patch)
tree72cb4070080bb9994b55d459fc690ebf7bf91238 /kubernetes/robot/templates
parentca8aa076c331bd435f9361aed38eafd294c1782d (diff)
Robot config seggregation
Issue-ID: OOM-560 Change-Id: Iee9c7c78c6eb53b14b31d6e31f1539040daa88ba Signed-off-by: vaibhav_16dec <vaibhav.chopra@amdocs.com>
Diffstat (limited to 'kubernetes/robot/templates')
-rw-r--r--kubernetes/robot/templates/robot-dep-configmap.yaml25
-rw-r--r--kubernetes/robot/templates/robot-deployment.yaml33
2 files changed, 41 insertions, 17 deletions
diff --git a/kubernetes/robot/templates/robot-dep-configmap.yaml b/kubernetes/robot/templates/robot-dep-configmap.yaml
new file mode 100644
index 0000000000..94e359dce7
--- /dev/null
+++ b/kubernetes/robot/templates/robot-dep-configmap.yaml
@@ -0,0 +1,25 @@
+#{{ if not .Values.disableRobot }}
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: robot-eteshare-configmap
+ namespace: {{ .Values.nsPrefix }}
+data:
+{{ tpl (.Files.Glob "resources/config/eteshare/config/*").AsConfig . | indent 2 }}
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: robot-resources-configmap
+ namespace: {{ .Values.nsPrefix }}
+data:
+{{ tpl (.Files.Glob "resources/config/robot/resources/*").AsConfig . | indent 2 }}
+---
+apiVersion: v1
+kind: ConfigMap
+metadata:
+ name: lighttpd-authorization-configmap
+ namespace: {{ .Values.nsPrefix }}
+data:
+{{ tpl (.Files.Glob "resources/config/authorization").AsConfig . | indent 2 }}
+#{{ end }}
diff --git a/kubernetes/robot/templates/robot-deployment.yaml b/kubernetes/robot/templates/robot-deployment.yaml
index a978ff4f41..9f936e8275 100644
--- a/kubernetes/robot/templates/robot-deployment.yaml
+++ b/kubernetes/robot/templates/robot-deployment.yaml
@@ -24,15 +24,19 @@ spec:
mountPath: /etc/localtime
readOnly: true
- name: robot-eteshare
- mountPath: /share
- - name: robot-resources-asdc-interface
+ mountPath: /share/config
+ - name: robot-resources
mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot
- - name: robot-resources-policy-interface
+ subPath: asdc_interface.robot
+ - name: robot-resources
mountPath: /var/opt/OpenECOMP_ETE/robot/resources/policy_interface.robot
- - name: robot-resources-sdngc-interface
+ subPath: policy_interface.robot
+ - name: robot-resources
mountPath: /var/opt/OpenECOMP_ETE/robot/resources/sdngc_interface.robot
+ subPath: sdngc_interface.robot
- name: lighttpd-authorization
mountPath: /etc/lighttpd/authorization
+ subPath: authorization
ports:
- containerPort: 88
readinessProbe:
@@ -45,20 +49,15 @@ spec:
hostPath:
path: /etc/localtime
- name: robot-eteshare
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare
- - name: robot-resources-asdc-interface
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/asdc_interface.robot
- - name: robot-resources-policy-interface
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/policy_interface.robot
- - name: robot-resources-sdngc-interface
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/sdngc_interface.robot
+ configMap:
+ name: robot-eteshare-configmap
+ defaultMode: 0755
+ - name: robot-resources
+ configMap:
+ name: robot-resources-configmap
- name: lighttpd-authorization
- hostPath:
- path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/authorization
+ configMap:
+ name: lighttpd-authorization-configmap
imagePullSecrets:
- name: "{{ .Values.nsPrefix }}-docker-registry-key"
#{{ end }}