Gitlab integration with rancher kubernetes cluster


I’m new with rancher 2.0 and gitlab. From the last week, I’ve build a HA cluster with 3 compute node.
The admin gui use my own ssl cert, the deployment is smooth and everythinks work.

But I would like to setup the AutoDevOps feature with Gitlab.
And I encounter some blocking error. Let me describe the error.

I’ve converted the base64 cert autorithy to pem format, copied it to gitlab kubernetes ca cert.
Do the same with the token, everythink seem OK.
But I got a message telling me to check the CA cert and the token.

If I try manually to access the API_url:6443, I’ve got an ssl error “NET:ERR_CERT_AUTHORITY_INVALID”
When I check the ssl cert ->
CN : kube-apiserver
Authority CN: kube-ca

Did I need to setup a valid cert chain (cert,key autorithy, …) Or did I miss something to setup the autodevops feature?

Thanks you in advance.
Best regards.

Hello @kimbaxz !

Did you find a solution ? I’m facing the same problem :confused:

One of my colleagues says ( and it appears to be true ) that if you use the url that you get from the ~/.kube/config file rather than the name given in rancher then things are better:

So for example

jb23@farm5-head2:~/gitlab-autodevops$ more ~/.kube/config
apiVersion: v1
kind: Config
- name: "jb23-adotest"
    server: ""
- name: "jb23-adotest-hc7-autodevops-test-jb23-master-0"
    server: ""
1 Like