I have installed Rancher 2 and created a kubernetes cluster of internal vm’s ( no AWS / gcloud).
The cluster is up and running.
I logged into one of the nodes.
-
Installed Kubectl and executed kubectl cluster-info . It listed my cluster information correctly.
-
Installed helm
curl https://raw.githubusercontent.com/helm/helm/master/scripts/get > get_helm.sh
chmod 700 get_helm.sh
./get_helm.shroot@lnmymachine # helm version
Client: &version.Version{SemVer:“v2.12.3”, GitCommit:“eecf22f77df5f65c823aacd2dbd30ae6c65f186e”, GitTreeState:“clean”}
Server: &version.Version{SemVer:“v2.12.3”, GitCommit:“eecf22f77df5f65c823aacd2dbd30ae6c65f186e”, GitTreeState:“clean”} -
Configured helm referencing Rancher Helm Init
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller
–clusterrole cluster-admin
–serviceaccount=kube-system:tillerhelm init --service-account tiller
Tried installing Jenkins via helm
root@lnmymachine # helm ls
Error: Unauthorized
root@lnmymachine # helm install --name initial stable/jenkins
Error: the server has asked for the client to provide credentials
Browsed similar issues and few of them were due to multiple clusters. I have only one cluster. kubectl gives all information correctly.
Any idea whats happening.