From 0947cdf7e780641e1604ef3752483fa4d29efb3e Mon Sep 17 00:00:00 2001 From: vaibhav_16dec Date: Wed, 17 Jan 2018 15:40:59 +0000 Subject: Robot config seggregation Issue-ID: OOM-560 Change-Id: Iee9c7c78c6eb53b14b31d6e31f1539040daa88ba Signed-off-by: vaibhav_16dec --- kubernetes/robot/templates/robot-deployment.yaml | 33 ++++++++++++------------ 1 file changed, 16 insertions(+), 17 deletions(-) (limited to 'kubernetes/robot/templates/robot-deployment.yaml') 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 }} -- cgit 1.2.3-korg