blob: 9f936e827518fe55c2dc255a2b2b855bc0c5a2b5 [file] [log] [blame]
yurynfcef9942017-10-26 17:10:50 +03001#{{ if not .Values.disableRobotRobot }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04002apiVersion: extensions/v1beta1
3kind: Deployment
4metadata:
5 name: robot
BorislavG8bfc6cf2018-02-27 15:04:26 +00006 namespace: "{{ .Values.nsPrefix }}"
Mandeep Khindad6ea9872017-06-24 11:49:37 -04007spec:
vaibhav_16dec425f0ed2018-02-16 07:15:59 +00008 replicas: {{ .Values.robotReplicas }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -04009 selector:
10 matchLabels:
11 app: robot
12 template:
13 metadata:
14 labels:
15 app: robot
16 name: robot
17 spec:
18 containers:
kerenjfc2caa62017-08-23 12:46:02 +000019 - image: {{ .Values.image.testsuite }}
20 imagePullPolicy: {{ .Values.pullPolicy }}
Mandeep Khindad6ea9872017-06-24 11:49:37 -040021 name: robot
22 volumeMounts:
yuryn8b3bc5a2017-09-13 19:21:03 +030023 - name: localtime
24 mountPath: /etc/localtime
25 readOnly: true
Mandeep Khindad6ea9872017-06-24 11:49:37 -040026 - name: robot-eteshare
vaibhav_16dec0947cdf2018-01-17 15:40:59 +000027 mountPath: /share/config
28 - name: robot-resources
Mandeep Khindac2384bd2017-08-25 16:23:01 +000029 mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot
vaibhav_16dec0947cdf2018-01-17 15:40:59 +000030 subPath: asdc_interface.robot
31 - name: robot-resources
Mandeep Khindac2384bd2017-08-25 16:23:01 +000032 mountPath: /var/opt/OpenECOMP_ETE/robot/resources/policy_interface.robot
vaibhav_16dec0947cdf2018-01-17 15:40:59 +000033 subPath: policy_interface.robot
34 - name: robot-resources
Mandeep Khindac2384bd2017-08-25 16:23:01 +000035 mountPath: /var/opt/OpenECOMP_ETE/robot/resources/sdngc_interface.robot
vaibhav_16dec0947cdf2018-01-17 15:40:59 +000036 subPath: sdngc_interface.robot
Mandeep Khindad6ea9872017-06-24 11:49:37 -040037 - name: lighttpd-authorization
38 mountPath: /etc/lighttpd/authorization
vaibhav_16dec0947cdf2018-01-17 15:40:59 +000039 subPath: authorization
Mandeep Khindad6ea9872017-06-24 11:49:37 -040040 ports:
41 - containerPort: 88
42 readinessProbe:
43 tcpSocket:
44 port: 88
45 initialDelaySeconds: 5
46 periodSeconds: 10
47 volumes:
yuryn8b3bc5a2017-09-13 19:21:03 +030048 - name: localtime
49 hostPath:
50 path: /etc/localtime
Mandeep Khindad6ea9872017-06-24 11:49:37 -040051 - name: robot-eteshare
vaibhav_16dec0947cdf2018-01-17 15:40:59 +000052 configMap:
53 name: robot-eteshare-configmap
54 defaultMode: 0755
55 - name: robot-resources
56 configMap:
57 name: robot-resources-configmap
Mandeep Khindad6ea9872017-06-24 11:49:37 -040058 - name: lighttpd-authorization
vaibhav_16dec0947cdf2018-01-17 15:40:59 +000059 configMap:
60 name: lighttpd-authorization-configmap
Borislav Glozman5197e2e2017-07-24 10:45:28 +030061 imagePullSecrets:
Mandeep Khinda0e8f8892017-08-25 03:31:17 +000062 - name: "{{ .Values.nsPrefix }}-docker-registry-key"
BorislavG8bfc6cf2018-02-27 15:04:26 +000063#{{ end }}