By WEARING
Hello,
I wanted to connect to my kubernetes (limited availability) cluster from my gitlab repo, firstly I followed this guide and successfully created a user ‘admin-user’ which I could use to sign into Kubernetes Dashboard as an admin
GitLab’s Kubernetes connection page asks for:
But I had limited success. GItLab reported ‘Something went wrong while installing Helm Tiller’, when I clicked install. There is a final experimental settings in the GitLab UI called ‘RBAC-enabled cluster’, I have tried with this setting both checked and unchecked, same results.
After looking at the dashboard, I see a ‘gitlab-managed-apps’ namespace had appeared which has done a few things like create a tiller-token secret, a config map and there’s some items listed under events
Is this something I’m doing wrong, a bug with GitLab or a bug with DigitalOcean? I’m relatively new to Kubernetes so if there’s more I can do to debug the issue please let me know
Thanks
EDIT: Oh, very strange, I deleted the tiller-secret and config-map left behind, tried clicking install about 3 more times, and now Helm Tiller has deployed successfully, no more errors. So solved for me, although I suspect more people will encounter this issue. (I had RBAC-enabled cluster checked for anyone looking for the same ‘fix’)
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
I had the same issue, I was able to fix it after installing helm on my own, but it also required to create a helm tiller service account first:
kubectl create serviceaccount --namespace kube-system tiller
kubectl create clusterrolebinding tiller-cluster-rule --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
kubectl patch deploy --namespace kube-system tiller-deploy -p '{"spec":{"template":{"spec":{"serviceAccount":"tiller"}}}}'
then (assuming helm is already installed)
helm reset
helm init
for some reason it only worked until I removed the namespace gitlab created
kubectl delete namespace gitlab-managed-apps
Then I went to the gitlab cluster configuration, clicked the helm install button and it worked. I think the tiller account is the only prerrequisite I’ll try with a fresh cluster later, the above instructions are for fixing an existing one.
kubectl get pods -n gitlab-managed-apps
NAME READY STATUS RESTARTS AGE
runner-gitlab-runner-7b9c6c6bc9-tw6wg 1/1 Running 0 8m
tiller-deploy-6cc8b46cf-bfbwk 1/1 Running 0 12m
If you are getting a Kubernetes Error 401 it means your Token is incorrect as it was in my case. Here I was using a token from an API tab in the Dashboard BUT should really create the Token by command line like recommended. After generating a user and a token using kubectl commands and changing the Token the installation of Helm worked perfectly. Hope it helps!
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.