Service objects for iag and eag
[oom.git] / kubernetes / robot / templates / robot-deployment.yaml
1 apiVersion: extensions/v1beta1
2 kind: Deployment
3 metadata:
4   name: robot
5   namespace: "{{ .Values.nsPrefix }}-robot"
6 spec:
7   selector:
8     matchLabels:
9       app: robot
10   template:
11     metadata:
12        labels:
13         app: robot
14        name: robot
15     spec:
16       containers:
17       - image: {{ .Values.image.testsuite }}
18         imagePullPolicy: {{ .Values.pullPolicy }}
19         name: robot
20         volumeMounts:
21         - name: robot-eteshare
22           mountPath: /share
23         - name: robot-assets
24           mountPath: /var/opt/OpenECOMP_ETE/robot/assets
25         - name: robot-resources
26           mountPath: /var/opt/OpenECOMP_ETE/robot/resources
27         - name: robot-testsuites
28           mountPath: /var/opt/OpenECOMP_ETE/robot/testsuites
29         - name: lighttpd-authorization
30           mountPath: /etc/lighttpd/authorization
31         ports:
32         - containerPort: 88
33         readinessProbe:
34           tcpSocket:
35             port: 88
36           initialDelaySeconds: 5
37           periodSeconds: 10
38       volumes:
39         - name: robot-eteshare
40           hostPath:
41             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare
42         - name: robot-assets
43           hostPath:
44             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/assets
45         - name: robot-resources
46           hostPath:
47             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources
48         - name: robot-testsuites
49           hostPath:
50             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/testsuites
51         - name: lighttpd-authorization
52           hostPath:
53             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/authorization
54       imagePullSecrets:
55       - name: "{{ .Values.nsPrefix }}-docker-registry-key"