yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 1 | #{{ if not .Values.disableRobotRobot }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 2 | apiVersion: extensions/v1beta1 |
| 3 | kind: Deployment |
| 4 | metadata: |
| 5 | name: robot |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 6 | namespace: "{{ .Values.nsPrefix }}-robot" |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 7 | spec: |
| 8 | selector: |
| 9 | matchLabels: |
| 10 | app: robot |
| 11 | template: |
| 12 | metadata: |
| 13 | labels: |
| 14 | app: robot |
| 15 | name: robot |
| 16 | spec: |
| 17 | containers: |
kerenj | fc2caa6 | 2017-08-23 12:46:02 +0000 | [diff] [blame] | 18 | - image: {{ .Values.image.testsuite }} |
| 19 | imagePullPolicy: {{ .Values.pullPolicy }} |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 20 | name: robot |
| 21 | volumeMounts: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 22 | - name: localtime |
| 23 | mountPath: /etc/localtime |
| 24 | readOnly: true |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 25 | - name: robot-eteshare |
| 26 | mountPath: /share |
Mandeep Khinda | c2384bd | 2017-08-25 16:23:01 +0000 | [diff] [blame] | 27 | - name: robot-resources-asdc-interface |
| 28 | mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot |
| 29 | - name: robot-resources-policy-interface |
| 30 | mountPath: /var/opt/OpenECOMP_ETE/robot/resources/policy_interface.robot |
| 31 | - name: robot-resources-sdngc-interface |
| 32 | mountPath: /var/opt/OpenECOMP_ETE/robot/resources/sdngc_interface.robot |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 33 | - name: lighttpd-authorization |
| 34 | mountPath: /etc/lighttpd/authorization |
| 35 | ports: |
| 36 | - containerPort: 88 |
| 37 | readinessProbe: |
| 38 | tcpSocket: |
| 39 | port: 88 |
| 40 | initialDelaySeconds: 5 |
| 41 | periodSeconds: 10 |
| 42 | volumes: |
yuryn | 8b3bc5a | 2017-09-13 19:21:03 +0300 | [diff] [blame] | 43 | - name: localtime |
| 44 | hostPath: |
| 45 | path: /etc/localtime |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 46 | - name: robot-eteshare |
| 47 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 48 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare |
Mandeep Khinda | c2384bd | 2017-08-25 16:23:01 +0000 | [diff] [blame] | 49 | - name: robot-resources-asdc-interface |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 50 | hostPath: |
Mandeep Khinda | c2384bd | 2017-08-25 16:23:01 +0000 | [diff] [blame] | 51 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/asdc_interface.robot |
| 52 | - name: robot-resources-policy-interface |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 53 | hostPath: |
Mandeep Khinda | c2384bd | 2017-08-25 16:23:01 +0000 | [diff] [blame] | 54 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/policy_interface.robot |
| 55 | - name: robot-resources-sdngc-interface |
| 56 | hostPath: |
| 57 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/sdngc_interface.robot |
Mandeep Khinda | d6ea987 | 2017-06-24 11:49:37 -0400 | [diff] [blame] | 58 | - name: lighttpd-authorization |
| 59 | hostPath: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 60 | path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/authorization |
Borislav Glozman | 5197e2e | 2017-07-24 10:45:28 +0300 | [diff] [blame] | 61 | imagePullSecrets: |
Mandeep Khinda | 0e8f889 | 2017-08-25 03:31:17 +0000 | [diff] [blame] | 62 | - name: "{{ .Values.nsPrefix }}-docker-registry-key" |
yuryn | fcef994 | 2017-10-26 17:10:50 +0300 | [diff] [blame] | 63 | #{{ end }} |