incorrect config map mounting 47/43247/1
authormayankg2703 <mayank.gupta@amdocs.com>
Tue, 17 Apr 2018 05:10:56 +0000 (05:10 +0000)
committermayankg2703 <mayank.gupta@amdocs.com>
Tue, 17 Apr 2018 05:12:51 +0000 (05:12 +0000)
Change-Id: I54dbc1ceaf46ddc54a9aeb8504f9dee30f042872
Issue-ID: OOM-918
Signed-off-by: mayankg2703 <mayank.gupta@amdocs.com>
kubernetes/policy/charts/brmsgw/templates/deployment.yaml
kubernetes/policy/charts/pdp/templates/statefulset.yaml
kubernetes/policy/templates/deployment.yaml

index cd715e4..e096902 100644 (file)
@@ -71,8 +71,12 @@ spec:
         - mountPath: /etc/localtime
           name: localtime
           readOnly: true
-        - mountPath: /tmp/policy-install/config
+        - mountPath: /tmp/policy-install/config/brmsgw-tweaks.sh
           name: pe-brmsgw
+          subPath: brmsgw-tweaks.sh
+        - mountPath: /tmp/policy-install/config/brmsgw.conf
+          name: pe-brmsgw
+          subPath: brmsgw.conf
         - mountPath: /tmp/policy-install/config/base.conf
           name: pe
           subPath: base.conf
index 367cde4..d09c446 100644 (file)
@@ -78,8 +78,15 @@ spec:
         - mountPath: /tmp/policy-install/config/base.conf
           name: pe
           subPath: base.conf
-        - mountPath: /tmp/policy-install/config/
+        - mountPath: /tmp/policy-install/config/pdp-tweaks.sh
           name: pe-pdp
+          subPath: pdp-tweaks.sh
+        - mountPath: /tmp/policy-install/config/pdplp.conf
+          name: pe-pdp
+          subPath: pdplp.conf
+        - mountPath: /tmp/policy-install/config/pdp.conf
+          name: pe-pdp
+          subPath: pdp.conf
         - mountPath: /tmp/policy-install/do-start.sh
           name: pe-scripts
           subPath: do-start.sh
index 88b3de3..8dca8ab 100644 (file)
@@ -45,19 +45,6 @@ spec:
         image: "{{ .Values.global.readinessRepository }}/{{ .Values.global.readinessImage }}"
         imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
         name: {{ include "common.name" . }}-readiness
-      - command: ["/bin/bash", "-c", "echo $POD_IP > /config/ip_addr.txt"]
-        env:
-        - name: POD_IP
-          valueFrom:
-            fieldRef:
-              apiVersion: v1
-              fieldPath: status.podIP
-        volumeMounts:
-        - mountPath: /config/
-          name: pe
-        image: {{ .Values.global.ubuntuImage }}
-        imagePullPolicy: {{ .Values.global.pullPolicy | default .Values.pullPolicy }}
-        name: generate-ip-addr-txt
       containers:
         - command:
           - /bin/bash
@@ -88,11 +75,30 @@ spec:
           - mountPath: /etc/localtime
             name: localtime
             readOnly: true
+          - mountPath: /tmp/policy-install/config/push-policies.sh
+            name: pe-pap
+            subPath: push-policies.sh
+          - mountPath: /tmp/policy-install/config/pap-tweaks.sh
+            name: pe-pap
+            subPath: pap-tweaks.sh
+          - mountPath: /tmp/policy-install/config/paplp.conf
+            name: pe-pap
+            subPath: paplp.conf
+          - mountPath: /tmp/policy-install/config/pap.conf
+            name: pe-pap
+            subPath: pap.conf
+          - mountPath: /tmp/policy-install/config/mysql.conf
+            name: pe-pap
+            subPath: mysql.conf
+          - mountPath: /tmp/policy-install/config/elk.conf
+            name: pe-pap
+            subPath: elk.conf
+          - mountPath: /tmp/policy-install/config/console.conf
+            name: pe-pap
+            subPath: console.conf
           - mountPath: /tmp/policy-install/config/base.conf
             name: pe
             subPath: base.conf
-          - mountPath: /tmp/policy-install/config/
-            name: pe-pap
           - mountPath: /tmp/policy-install/do-start.sh
             name: pe-scripts
             subPath: do-start.sh