Merge "AAI services registration via MSB"
[oom.git] / kubernetes / robot / templates / robot-deployment.yaml
index 5130955..9f936e8 100644 (file)
@@ -3,8 +3,9 @@ apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: robot
-  namespace: "{{ .Values.nsPrefix }}-robot"
+  namespace: "{{ .Values.nsPrefix }}"
 spec:
+  replicas: {{ .Values.robotReplicas }}
   selector:
     matchLabels:
       app: robot
@@ -23,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:
@@ -44,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 }}
\ No newline at end of file
+#{{ end }}