Im trying to add rancher to gitlab ci/cd. I want to deploy gitlab runners dynamically into the k8s cluster and for that i have to add the cluster in the operations section which i believe its part of the auto devops system.
After following the rancher tutorial: https://rancher.com/blog/2019/connecting-gitlab-autodevops-authorized-cluster-endpoints/ i reached the point where it fails to install helm.
I followed the tutorial and the “install-helm” pod gives what i believe to be an api error:
- helm init --tiller-tls --tiller-tls-verify --tls-ca-cert /data/helm/helm/config/ca.pem --tiller-tls-cert /data/helm/helm/config/cert.pem --tiller-tls-key /data/helm/helm/config/key.pem --service-account tiller
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /root/.helm.
Error: error installing: Post https://10.43.0.1:443/apis/apps/v1/namespaces/gitlab-managed-apps/deployments: Service Unavailable
I am using the cluster endpoint, tried with both a FQDN and without.
The rancher version is 2.3.2 and GitLab is running the latest version