aboutsummaryrefslogtreecommitdiffstats
path: root/kubernetes/dcaegen2/templates/pod.yaml
blob: ffb3716ecfe87e43ae45aa5da2348e9b9e9f3f6d (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
#{{ if not .Values.disableDcaegen2 }}
apiVersion: v1
kind: Pod
metadata:
  name: {{ .Chart.Name }}
  namespace: "{{ .Values.nsPrefix }}-dcaegen2"
spec:
  containers:
    - name: {{ .Chart.Name }}
      image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
      imagePullPolicy: {{ .Values.image.pullPolicy }}
      volumeMounts:
      - name: installer-config-mount
        mountPath: /opt/app/installer/config
        readOnly: true
      env:
      - name: LOCATION
        value: "{{ .Values.location }}"
  volumes:
  - name: installer-config-mount
    projected:
      sources:
      - secret:
          name: "{{ .Chart.Name }}-openstack-ssh-private-key"
      - configMap:
          name: "{{ .Chart.Name }}-config-inputs"
  imagePullSecrets:
  - name: "{{ .Values.nsPrefix }}-docker-registry-key"
  restartPolicy: Never
#{{ end }}