I am learning CI / CD. I have configured the following in my local environment,
- gilab server ==> 172.16.1.2
- gilabrunner server ==> 172.16.1.3
- Kubernete Group ==> 172.16.1.4
Gitlab runner connected to gitlab successifflu. I can execute jobs successfully.
But the problem is with the Kubernetes. It runs on https://172.16.1.4:6443
I have added this cluster to my projects. But every time I install the rudder inside the gtilab page I get
Something went wrong when installing Helm Tiller. Unable to start the installation process
I searched on Google how to solve this without luck.
I tried deployment stage in gitlab-ci
k8s-deploy: image: alpine: 3.7 stage: unfold script: - apk update && apk add --no-cache curl - curl -LO https://storage.googleapis.com/kubernetes- release / $ (curl -s https://storage.googleapis.com/kubernetes- release / stable.txt) / bin / linux / amd64 / kubectl - chmod + x ./kubectl && mv ./kubectl / usr / local / bin / kubectl - mkdir -p $ HOME / .kube - echo -n $ KUBE_CONFIG | base64 -d> $ HOME / .kube / config - Kubectl configuration view - kubectl apply -f deployment.yml
But kubectl context It executes in http; // locahost
How can I successively make kubernetes and gitlab talk to each other?
I'm stuck in deployment stage