summaryrefslogtreecommitdiffstats
path: root/kubernetes/dcaegen2/templates/heat-bootstrap-dep.yaml
blob: 194d9c47e5a8d00628615967ad1175de2c5ee63a (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
#{{ if not .Values.disableDcae }}
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: heat-bootstrap
  namespace: "{{ .Values.nsPrefix }}-dcaegen2"
spec:
  selector:
    matchLabels:
      app: heat-bootstrap
  template:
    metadata:
      labels:
        app: heat-bootstrap
      name: heat-bootstrap
    spec:
      hostname: heat-bootstrap
      containers:
      - command:
        - /bin/bash
        - ./opt/heat/entrypoint.sh
        args: ["{{ .Values.nsPrefix }}"]
        image: "{{ .Values.heat_bootstrap.repository }}:{{ .Values.heat_bootstrap.tag }}"
        imagePullPolicy: {{ .Values.pullPolicy }}
        name: "heat-bootstrap"
        volumeMounts:
        - mountPath: /etc/localtime
          name: localtime
          readOnly: true
        - mountPath: /opt/heat
          name: heat-bootstrap-config
        - mountPath: /opt/robot
          name: robot-config
      volumes:
        - name: localtime
          hostPath:
            path: /etc/localtime
        - name: heat-bootstrap-config
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/dcaegen2/heat/
        - name: robot-config
          hostPath:
            path: /dockerdata-nfs/{{ .Values.nsPrefix }}/robot/eteshare/config/
      imagePullSecrets:
      - name: "{{ .Values.nsPrefix }}-docker-registry-key"
#{{ end }}