Fix the docker app config mount issue and installation 62/9362/1
authordliu5 <david.liu@windriver.com>
Sat, 22 Oct 2022 02:45:22 +0000 (10:45 +0800)
committerdliu5 <david.liu@windriver.com>
Sat, 22 Oct 2022 02:46:04 +0000 (10:46 +0800)
inconsistency

Signed-off-by: dliu5 <david.liu@windriver.com>
Change-Id: Iae3afcdf3c5a760d7dea606fbcccdf06c56d9450

charts/templates/deployment.yaml
docs/installation-guide.rst

index 5f64ccb..194ca7e 100644 (file)
@@ -82,6 +82,10 @@ spec:
           volumeMounts:
             - name: scripts
               mountPath: /opt
+            - name: applicationconfig
+              mountPath: /configs/o2app.conf
+              subPath: config.json
+              readOnly: true
         - name: watcher
           image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
           command: ["/bin/bash", "/opt/o2watcher_start.sh"]
@@ -107,6 +111,10 @@ spec:
           volumeMounts:
             - name: scripts
               mountPath: /opt
+            - name: applicationconfig
+              mountPath: /configs/o2app.conf
+              subPath: config.json
+              readOnly: true
         - name: o2api
           image: "{{ .Values.o2ims.image.repository }}:{{ .Values.o2ims.image.tag }}"
           ports:
index 7c19274..4c3e2bc 100644 (file)
@@ -256,7 +256,7 @@ The following instruction should be done outside of INF platform controller host
 
 .. code:: shell
 
-  helm install o2service o2/charts --set-file caconfig="./imsserver.cert"  --set-file applicationconfig="./app.conf"  --set-file serverkeyconfig="./imsserver.key" -f o2service-override.yaml
+  helm install o2service o2/charts --set-file caconfig="./imsserver.crt"  --set-file applicationconfig="./app.conf"  --set-file serverkeyconfig="./imsserver.key" -f o2service-override.yaml
   helm list |grep o2service
   kubectl -n ${NAMESPACE} get pods |grep o2api
   kubectl -n ${NAMESPACE} get services |grep o2api