Robot config seggregation
[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 }}"
7 spec:
8   replicas: {{ .Values.robotReplicas }}
9   selector:
10     matchLabels:
11       app: robot
12   template:
13     metadata:
14        labels:
15         app: robot
16        name: robot
17     spec:
18       containers:
19       - image: {{ .Values.image.testsuite }}
20         imagePullPolicy: {{ .Values.pullPolicy }}
21         name: robot
22         volumeMounts:
23         - name: localtime
24           mountPath: /etc/localtime
25           readOnly: true
26         - name: robot-eteshare
27           mountPath: /share/config
28         - name: robot-resources
29           mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot
30           subPath: asdc_interface.robot
31         - name: robot-resources
32           mountPath: /var/opt/OpenECOMP_ETE/robot/resources/policy_interface.robot
33           subPath: policy_interface.robot
34         - name: robot-resources
35           mountPath: /var/opt/OpenECOMP_ETE/robot/resources/sdngc_interface.robot
36           subPath: sdngc_interface.robot
37         - name: lighttpd-authorization
38           mountPath: /etc/lighttpd/authorization
39           subPath: 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-eteshare
52           configMap:
53             name: robot-eteshare-configmap
54             defaultMode: 0755
55         - name: robot-resources
56           configMap:
57             name: robot-resources-configmap
58         - name: lighttpd-authorization
59           configMap:
60             name: lighttpd-authorization-configmap
61       imagePullSecrets:
62       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
63 #{{ end }}