'Open Source MANO (OSM) v11 install with --k8s_monitor ERROR

When I install OSM with --k8s_monitor, I am getting error below:

Checking if helm-tiller is installed...
The connection to the server localhost:8080 was refused - did you specify the right host or port?
error: failed to create clusterrolebinding: Post "http://localhost:8080/apis/rbac.authorization.k8s.io/v1/clusterrolebindings?fieldManager=kubectl-create": dial tcp 127.0.0.1:8080: connect: connection refused
Error: unknown command "init" for "helm"

Did you mean this?
        lint

Run 'helm --help' for usage.
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Waiting for tiller READY....
The connection to the server localhost:8080 was refused - did you specify the right host or port?

Looks like the installation is using new version of Helm which does not require initialisation.

I found a piece of code here under /usr/share/osm-devops/installer/k8s/install_osm_k8s_monitoring.sh

echo "Checking if helm-tiller is installed..."
kubectl --namespace kube-system get serviceaccount tiller > /dev/null 2>&1
if [ $? == 1 ] ; then
# tiller account for kubernetes
kubectl --namespace kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
# HELM initialization
helm init --stable-repo-url https://charts.helm.sh/stable --service-account tiller

# Wait for Tiller to be up and running
while true
do
tiller_status=`kubectl -n kube-system get deployment.apps/tiller-deploy --no-headers |  awk '{print $2'}`
    if  [ ! -z "$tiller_status" ]
    then
        if [ $tiller_status == "1/1" ]
        then
            echo "Go...."
            break
        fi
    fi
    echo "Waiting for tiller READY...."
    sleep 2
done
fi

Which I don't is necessary any more as new version of Helm does not require initialisation and tiller.

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source