AAI services registration via MSB
[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
28         - name: robot-resources-asdc-interface
29           mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot
30         - name: robot-resources-policy-interface
31           mountPath: /var/opt/OpenECOMP_ETE/robot/resources/policy_interface.robot
32         - name: robot-resources-sdngc-interface
33           mountPath: /var/opt/OpenECOMP_ETE/robot/resources/sdngc_interface.robot
34         - name: lighttpd-authorization
35           mountPath: /etc/lighttpd/authorization
36         ports:
37         - containerPort: 88
38         readinessProbe:
39           tcpSocket:
40             port: 88
41           initialDelaySeconds: 5
42           periodSeconds: 10
43       volumes:
44         - name: localtime
45           hostPath:
46             path: /etc/localtime
47         - name: robot-eteshare
48           hostPath:
49             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare
50         - name: robot-resources-asdc-interface
51           hostPath:
52             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/asdc_interface.robot
53         - name: robot-resources-policy-interface
54           hostPath:
55             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/policy_interface.robot
56         - name: robot-resources-sdngc-interface
57           hostPath:
58             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/sdngc_interface.robot
59         - name: lighttpd-authorization
60           hostPath:
61             path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/authorization
62       imagePullSecrets:
63       - name: "{{ .Values.nsPrefix }}-docker-registry-key"
64 #{{ end }}