X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=docs%2Finstallation-guide.rst;h=20cbb00dca918f5d8f5d2eff0268a839a821ce4d;hb=f3ce354b2e6c538b50ed990ba359d3af2283c901;hp=ff51d0fd686ca93ba504247739254c2dcb18814b;hpb=3985a27696d6c5857ad54ecac7f8da32ad8edfc3;p=pti%2Fo2.git diff --git a/docs/installation-guide.rst b/docs/installation-guide.rst index ff51d0f..20cbb00 100644 --- a/docs/installation-guide.rst +++ b/docs/installation-guide.rst @@ -87,7 +87,7 @@ The following instruction should be done outside of INF platform controller host source <(kubectl completion bash) # setup autocomplete in bash into the current shell, bash-completion package should be installed first. echo "source <(kubectl completion bash)" >> ~/.bashrc # add autocomplete permanently to your bash shell. - curl https://get.helm.sh/helm-v3.5.3-linux-amd64.tar.gz --output helm-v3.5.3-linux-amd64.tar.gz + curl -O https://get.helm.sh/helm-v3.5.3-linux-amd64.tar.gz tar xvf helm-v3.5.3-linux-amd64.tar.gz sudo cp linux-amd64/helm /usr/local/bin/ @@ -128,9 +128,12 @@ The following instruction should be done outside of INF platform controller host export NAMESPACE=orano2 kubectl create ns ${NAMESPACE} - export OS_AUTH_URL= - export OS_USERNAME= - export OS_PASSWORD= + # default kube config location is ~/.kube/config + cp ~/.kube/config o2/charts/resources/scripts/init/k8s_kube.conf + + export OS_AUTH_URL= + export OS_USERNAME= + export OS_PASSWORD= cat <o2service-override.yaml o2ims: @@ -145,6 +148,7 @@ The following instruction should be done outside of INF platform controller host OS_AUTH_URL: "${OS_AUTH_URL}" OS_USERNAME: "${OS_USERNAME}" OS_PASSWORD: "${OS_PASSWORD}" + K8S_KUBECONFIG: "/opt/k8s_kube.conf" EOF @@ -164,10 +168,15 @@ The following instruction should be done outside of INF platform controller host .. code:: shell - curl -k http(s)://:30205 curl -k http(s)://:30205/o2ims_infrastructureInventory/v1/ +2.5 O2 Service API Swagger +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +- Swagger UI can be found with URL: http(s)://:30205 + + 3. Register O-Cloud to SMO -------------------------- @@ -176,12 +185,21 @@ The following instruction should be done outside of INF platform controller host .. code:: shell + curl -X 'GET' \ + 'http(s)://:30205/provision/v1/smo-endpoint' \ + -H 'accept: application/json' + curl -k -X 'POST' \ 'http(s)://:30205/provision/v1/smo-endpoint' \ -H 'accept: application/json' \ -H 'Content-Type: application/json' \ -d '{"endpoint": ""}' + # Confirm SMO endpoint provision status + curl -X 'GET' \ + 'http(s)://:30205/provision/v1/smo-endpoint' \ + -H 'accept: application/json' + References ----------