Fix Robot distribute test
[oom.git] / kubernetes / robot / templates / robot-deployment.yaml
1 #{{ if not .Values.disableRobotRobot }}
2 apiVersion: extensions/v1beta1
3 kind: Deployment
4 metadata:
5   name: robot
6   namespace: "{{ .Values.nsPrefix }}-robot"
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:
18       - command:
19         - bash
20         - "-c"
21         - |
22           git clone -b amsterdam --single-branch http://gerrit.onap.org/r/demo.git /tmp/demo
23           mkdir -p /share/heat && cp -rf /tmp/demo/heat /share
24           git clone -b amsterdam --single-branch http://gerrit.onap.org/r/testsuite/properties.git /tmp/testsuite/properties
25           mkdir -p /share/config && cp /tmp/testsuite/properties/integration_* /share/config
26           lighttpd -D -f /etc/lighttpd/lighttpd.conf
27         image: {{ .Values.image.testsuite }}
28         imagePullPolicy: {{ .Values.pullPolicy }}
29         name: robot
30         volumeMounts:
31         - name: localtime
32           mountPath: /etc/localtime
33           readOnly: true
34         - name: robot-resources-asdc-interface
35           mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot
36         - name: vm-properties
37           mountPath: /share/config/
38         - name: lighttpd-authorization
39           mountPath: /etc/lighttpd/authorization
40         ports:
41         - containerPort: 88
42         readinessProbe:
43           tcpSocket:
44             port: 88
45           initialDelaySeconds: 5
46           periodSeconds: 10
47       volumes:
48         - name: localtime
49           hostPath:
50             path: /etc/localtime
51         - name: robot-resources-asdc-interface
52           hostPath:
53             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/asdc_interface.robot
54         - name: vm-properties
55           hostPath:
56             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/config
57         - name: lighttpd-authorization
58           hostPath:
59             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/authorization
60       imagePullSecrets:
61       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
62 #{{ end }}