Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagebash
cd orufhrecovery/scriptversion/helm/sdnr-simulator/
helm package .
kubectl cp ./sdnr-simulator-0.1.0.tgz onap/<POD-NAME-k8s-ppnt>:/home/policy/local-charts/sdnr-simulator-0.1.0.tgz

cd orufhrecovery/scriptversion/helm/message-generator/
helm package .
kubectl cp ./message-generator-0.1.0.tgz onap/<POD-NAME-k8s-ppnt>:/home/policy/local-charts/message-generator-0.1.0.tgz

cd orufhrecovery/scriptversion/helm/oru-app/
helm package .
kubectl cp ./oru-app-0.1.0.tgz onap/<POD-NAME-k8s-ppnt>:/home/policy/local-charts/oru-app-0.1.0.tgz
  • Finally, create Create tls - certs using onap cet manager  kubectl apply -f certificate.yaml (Replace NodeIP with your control plane IP)
  • Install the nginx proxy to run in front of ONAP chartmuseum: kubectl apply -f nginx.yaml
  • Retrieve chartmuseum username and password using kubectl get secret onap-chartmuseum-registrycred -o=go-template='{{$login := .data.login| base64decode}}{{$pw := .data.password| base64decode}}{{printf "%s:%s" $login $pw }}'
  • Push the charts to chartmuseum e.g. curl -u <username>:<password> --data-binary "@sdnr-simulator-0.1.0.tgz" http://172.16.2.85:30088/api/charts


Retrieve the ca.crt from the secret and copy it to the k8s-ppnt pod : 

Code Block
languagebash
kubectl get secret nginx-tls -o jsonpath="{.data.ca\.crt}" | base64 -d > ca.crt 
cp ~/certs/ca.crt onap/${K8S_PPNT_POD}:/home/policy/ssl


Log into the k8s-ppnt pod using "kubectl -n onap exec -it <POD-NAME-k8s-ppnt> sh" and run the following commands:

Code Block
languagebash
mkdir -p ~/.kube
mkdir ~/ssl

helm repo add nginx-proxy https://nginx-proxy:443 --ca-file /home/policy/ssl/ca.crt
helm repo update

...