From: dliu5 Date: Mon, 24 Oct 2022 03:36:45 +0000 (+0800) Subject: Change the helm installation command option to X-Git-Tag: 2.0.0-rc1~26 X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=52d9e382d966d6ee095831f3274170e9e1d17dfa;p=pti%2Fo2.git Change the helm installation command option to compatible with wrcp. Start up flask app with ssl configuration files. INF-312. Signed-off-by: dliu5 Change-Id: I0f4383e5c0ffbe65fcd648ba916a64edc70db7d1 --- diff --git a/charts/resources/scripts/init/o2api_start.sh b/charts/resources/scripts/init/o2api_start.sh index 5c8fcd6..6aa68a4 100644 --- a/charts/resources/scripts/init/o2api_start.sh +++ b/charts/resources/scripts/init/o2api_start.sh @@ -31,6 +31,6 @@ cat <>/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 diff --git a/docs/installation-guide.rst b/docs/installation-guide.rst index 4c3e2bc..1ef39fa 100644 --- a/docs/installation-guide.rst +++ b/docs/installation-guide.rst @@ -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