Change the helm installation command option to 71/9371/2
authordliu5 <david.liu@windriver.com>
Mon, 24 Oct 2022 03:36:45 +0000 (11:36 +0800)
committerdliu5 <david.liu@windriver.com>
Mon, 24 Oct 2022 07:59:40 +0000 (15:59 +0800)
compatible with wrcp.

Start up flask app with ssl configuration files.

INF-312.

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

charts/resources/scripts/init/o2api_start.sh
docs/installation-guide.rst

index 5c8fcd6..6aa68a4 100644 (file)
@@ -31,6 +31,6 @@ cat <<EOF>>/etc/hosts
 EOF
 
 
-flask run --host=0.0.0.0 --port=80
+flask run --host=0.0.0.0 --port=80 --cert /configs/ca.cert  --key /configs/server.key
 
 sleep infinity
index 4c3e2bc..1ef39fa 100644 (file)
@@ -256,7 +256,10 @@ The following instruction should be done outside of INF platform controller host
 
 .. code:: shell
 
-  helm install o2service o2/charts --set-file caconfig="./imsserver.crt"  --set-file applicationconfig="./app.conf"  --set-file serverkeyconfig="./imsserver.key" -f o2service-override.yaml
+  config_data=`cat ./path/to/app.conf`
+  certification_data=`cat ./path/to/imsserver.crt`
+  key_data=`cat ./path/to/imsserver.key`
+  helm install o2service o2/charts --set caconfig="$certification_data"  --set applicationconfig="$config_data"  --set serverkeyconfig="$key_data" -f o2service-override.yaml
   helm list |grep o2service
   kubectl -n ${NAMESPACE} get pods |grep o2api
   kubectl -n ${NAMESPACE} get services |grep o2api