2

I'm encountering an issue with GitLab's Kubernetes Agent Server (GitLab-KAS) on my DigitalOcean droplet running GitLab-CE.

Despite attempts to restart and reconfigure GitLab, the GitLab-KAS service remains down, causing a failure in my GitLab instance.

I've also made several modifications to the gitlab.rb configuration file but with no success.

Goal: Can anyone suggest how to troubleshoot and resolve the GitLab-KAS service failure on my DigitalOcean droplet to get my GitLab up and running for everyone else?

Current Status: When I run sudo gitlab-ctl status, I get the following output:

down: gitlab-kas: 0s, normally up, want up

Attempts made:

  • I tried disabling GitLab-KAS by setting gitlab_kas['enable'] = false in gitlab.rb.

While this prevents the service from starting and does not show up in gitlab-ctl status, it doesn't resolve the issue, and I don't receive any response in the UI.

  • I also attempted to configure the external URL for GitLab-KAS by adding gitlab_kas_external_url "wss://gitlab.company.com/-/kubernetes-agent/", but GitLab-KAS remains down.
  • Additionally, I tried enabling GitLab-KAS with the following configurations in gitlab.rb: gitlab_kas['internal_api_listen_network'] = 'unix' gitlab_kas['internal_api_listen_address'] = '/var/opt/gitlab/gitlab-kas/sockets/internal-api.socket' gitlab_kas['private_api_listen_network'] = 'unix' gitlab_kas['private_api_listen_address'] = '/var/opt/gitlab/gitlab-kas/sockets/private-api.socket' gitlab_kas['env'] = { 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/", 'OWN_PRIVATE_API_URL' => 'unix:///var/opt/gitlab/gitlab-kas/sockets/private-api.socket' }

However, this also didn't resolve the issue.

1 Answer 1

2

If you don't use Kubernetes, GitLab-KAS can be disabled:

  • In gitlab.rb, set gitlab_kas['enable'] = false
  • Update and restart using gitlab-ctl reconfigure
  • Check all is OK with gitlab-ctl status

This is necessary for anyone who has just upgraded their GitLab-CE (Community Edition) to V17 in a simple VM (no Kubernetes) who finds their pipelines not working (because GitLab-KAS is enabled by default).

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.