Merge "AAI services registration via MSB"
[oom.git] / kubernetes / robot / templates / robot-deployment.yaml
index 3a98f87..9f936e8 100644 (file)
@@ -1,9 +1,11 @@
+#{{ if not .Values.disableRobotRobot }}
 apiVersion: extensions/v1beta1
 kind: Deployment
 metadata:
   name: robot
-  namespace: "{{ .Values.nsPrefix }}-robot"
+  namespace: "{{ .Values.nsPrefix }}"
 spec:
+  replicas: {{ .Values.robotReplicas }}
   selector:
     matchLabels:
       app: robot
@@ -18,24 +20,23 @@ spec:
         imagePullPolicy: {{ .Values.pullPolicy }}
         name: robot
         volumeMounts:
+        - name: localtime
+          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
-        - name: robot-assets-asdc-base-clearwater-env
-          mountPath: /var/opt/OpenECOMP_ETE/robot/assets/asdc/base_clearwater/base_clearwater.env
-        - name: robot-assets-asdc-base-vfw-env
-          mountPath: /var/opt/OpenECOMP_ETE/robot/assets/asdc/base_vfw/base_vfw.env
-        - name: robot-assets-asdc-base-vlb-env
-          mountPath: /var/opt/OpenECOMP_ETE/robot/assets/asdc/base_vlb/base_vlb.env
-        - name: robot-assets-asdc-base-vlb-dns-env
-          mountPath: /var/opt/OpenECOMP_ETE/robot/assets/asdc/base_vlb/dnsscaling.env
+          subPath: authorization
         ports:
         - containerPort: 88
         readinessProbe:
@@ -44,32 +45,19 @@ spec:
           initialDelaySeconds: 5
           periodSeconds: 10
       volumes:
-        - 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
+        - name: localtime
           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
+            path: /etc/localtime
+        - name: robot-eteshare
+          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
-        - name: robot-assets-asdc-base-clearwater-env
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets/asdc/base_clearwater/base_clearwater.env
-        - name: robot-assets-asdc-base-vfw-env
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets/asdc/base_vfw/base_vfw.env
-        - name: robot-assets-asdc-base-vlb-env
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets/asdc/base_vlb/base_vlb.env
-        - name: robot-assets-asdc-base-vlb-dns-env
-          hostPath:
-            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets/asdc/base_vlb/dnsscaling.env
+          configMap:
+            name: lighttpd-authorization-configmap
       imagePullSecrets:
       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
+#{{ end }}