blob: 217478bb4da81c302be77d9de005bad427a8a5a6 [file] [log] [blame]
Mandeep Khindadc2dc862017-09-08 05:20:30 +00001apiVersion: v1
2kind: ConfigMap
3metadata:
4 name: global-onap-configmap
5 namespace: "{{ .Values.nsPrefix }}"
6data:
yuryn9e4fa272017-09-14 20:02:53 +03007{{ .Files.Get "onap-parameters.yaml" | indent 2 }}
Mandeep Khindadc2dc862017-09-08 05:20:30 +00008---
9apiVersion: v1
10kind: Pod
11metadata:
12 name: {{ .Chart.Name }}
13 namespace: "{{ .Values.nsPrefix }}"
14spec:
15 containers:
16 - name: {{ .Chart.Name }}
17 image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
18 imagePullPolicy: {{ .Values.image.pullPolicy }}
19 envFrom:
20 - configMapRef:
21 name: global-onap-configmap
22 env:
23 - name: NAMESPACE
24 valueFrom:
25 fieldRef:
26 fieldPath: metadata.namespace
27 - name: NAMESPACE_PREFIX
28 value: {{ .Values.nsPrefix }}
29 - name: DOCKER_SHARE_PATH
30 value: {{ .Values.dockerSharePath }}
31 volumeMounts:
32 - name: config-init-root
33 mountPath: /config-init/
34 volumes:
35 - name: config-init-root
36 hostPath:
37 path: {{ .Values.dockerSharePath }}
38 restartPolicy: Never