Recently I’ve deployed a fresh two-nodes Kubernetes cluster (using kubespray), and then I’ve configured a gitlab-ci runner to run on it using the “Set up a specific Runner automatically” option on Gitlab UI available on CI/CD Settings page.
The runner was successfully deployed inside the k8s cluster, and I’m able to run build Jobs using it and deploy environments.
But I’m unable to get shell access into a running environment using the “Interactive Web Terminal” feature. When I try to access a running environment - Operations -> Environments -> Terminal - I get the error message " Connection failure ".
By editing the ConfigMap used in runner’s configuration I’ve specified the [session_server] section as shown below:
I can successfully Start and Stop the Environment through the Gitlab UI, and I can also use kubectl exec to get shell access into the deployment pod. But I’m unable to use Gitlab’s Interactive Web Terminal feature, which is something I desperately need.
Am I missing something in the configuration?
Please, help me solving this issue. Is there any step-by-step tutorial on how to properly configure gitlab runner on kubernetes?
Web Terminal feature only works if the __CI_ENVIRONMENT_SLUG__ label is passed as shown below [when deploying into k8s].
I’m also replacing that variable inside the k8s deployment manifest, but probably this is redundant since I’m also passing the label ‘app=’. This is something I need to confirm. In any case, I’ve successfully launched an Interactive Web Terminal using the code below.
Please, feel free to reach me in case of difficulties. I might take some time to get back here, but eventually I will. I may take some time to respond, but I will asap.
I believe the original issue was about being able to use the Debug feature in CI pipeline? If correct, I am having the same issue, did anybody find a solution for that?