5130955919c77c41e71853ce425014abb103d6bf
[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       - image: {{ .Values.image.testsuite }}
19         imagePullPolicy: {{ .Values.pullPolicy }}
20         name: robot
21         volumeMounts:
22         - name: localtime
23           mountPath: /etc/localtime
24           readOnly: true
25         - name: robot-eteshare
26           mountPath: /share
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
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:
43         - name: localtime
44           hostPath:
45             path: /etc/localtime
46         - name: robot-eteshare
47           hostPath:
48             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare
49         - name: robot-resources-asdc-interface
50           hostPath:
51             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/asdc_interface.robot
52         - name: robot-resources-policy-interface
53           hostPath:
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
58         - name: lighttpd-authorization
59           hostPath:
60             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/authorization
61       imagePullSecrets:
62       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
63 #{{ end }}