blob: 38d27ee6e183652e33c22e58a956a127dd340603 [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 }}
mayankg2703bc6f0d72018-01-29 09:57:05 +000017 image: "{{ .Values.image.repository }}"
Mandeep Khindadc2dc862017-09-08 05:20:30 +000018 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
mayankg2703bc6f0d72018-01-29 09:57:05 +000028 value: {{ .Values.nsPrefix }}
Mandeep Khindadc2dc862017-09-08 05:20:30 +000029 - 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 }}
mayankg2703bc6f0d72018-01-29 09:57:05 +000038 restartPolicy: Never