aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/robot/templates/robot-deployment.yaml
blob: 5130955919c77c41e71853ce425014abb103d6bf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#{{ if not .Values.disableRobotRobot }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: robot
  namespace: "{{ .Values.nsPrefix }}-robot"
spec:
  selector:
    matchLabels:
      app: robot
  template:
    metadata:
       labels:
        app: robot
       name: robot
    spec:
      containers:
      - image: {{ .Values.image.testsuite }}
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: robot
        volumeMounts:
        - name: localtime
          mountPath: /etc/localtime
          readOnly: true
        - name: robot-eteshare
          mountPath: /share
        - name: robot-resources-asdc-interface
          mountPath: /var/opt/OpenECOMP_ETE/robot/resources/asdc_interface.robot
        - name: robot-resources-policy-interface
          mountPath: /var/opt/OpenECOMP_ETE/robot/resources/policy_interface.robot
        - name: robot-resources-sdngc-interface
          mountPath: /var/opt/OpenECOMP_ETE/robot/resources/sdngc_interface.robot
        - name: lighttpd-authorization
          mountPath: /etc/lighttpd/authorization
        ports:
        - containerPort: 88
        readinessProbe:
          tcpSocket:
            port: 88
          initialDelaySeconds: 5
          periodSeconds: 10
      volumes:
        - name: localtime
          hostPath:
            path: /etc/localtime
        - name: robot-eteshare
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare
        - name: robot-resources-asdc-interface
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/asdc_interface.robot
        - name: robot-resources-policy-interface
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/policy_interface.robot
        - name: robot-resources-sdngc-interface
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/robot/resources/sdngc_interface.robot
        - name: lighttpd-authorization
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/authorization
      imagePullSecrets:
      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
#{{ end }}