Michael Kazakov activity https://gitlab.com/kivarum 2026-03-19T08:43:20Z tag:gitlab.com,2026-03-19:5220984152 Michael Kazakov commented on merge request !9154 at GitLab.org / omnibus-gitlab 2026-03-19T08:43:20Z kivarum Michael Kazakov

done

tag:gitlab.com,2026-03-19:5220981359 Michael Kazakov pushed to project branch fix-issue-9638 at Michael Kazakov / omnibus-gitlab 2026-03-19T08:42:35Z kivarum Michael Kazakov

Michael Kazakov (9eacb142) at 19 Mar 08:42

Defined k8s_proxy_* default values, fixed teplate

... and 1 more commit

tag:gitlab.com,2026-03-18:5216503498 Michael Kazakov commented on merge request !9154 at GitLab.org / omnibus-gitlab 2026-03-18T09:31:28Z kivarum Michael Kazakov

I have 3 options

  • Remove к8s_proxy_read_timeout, k8s_proxy_connect_timeout from nginx-kas config. In this case the global configuration will be used
  • Define defaults as constants. The first variant I did.
  • Define defaults dynamically using global values

I do not know which I have to choose

tag:gitlab.com,2026-03-17:5213810080 Michael Kazakov pushed to project branch sh-fix-issue-9235 at Michael Kazakov / omnibus-gitlab 2026-03-17T16:28:39Z kivarum Michael Kazakov

Michael Kazakov (f4f08d90) at 17 Mar 16:28

Apply 1 suggestion(s) to 1 file(s)

tag:gitlab.com,2026-03-17:5212475434 Michael Kazakov commented on merge request !9133 at GitLab.org / omnibus-gitlab 2026-03-17T11:56:55Z kivarum Michael Kazakov

@victorprete

It is brake tests

NoMethodError: undefined method `command' for Chef::Resource::RunitService

tag:gitlab.com,2026-03-17:5212428972 Michael Kazakov pushed to project branch fix-issue-9638 at Michael Kazakov / omnibus-gitlab 2026-03-17T11:45:08Z kivarum Michael Kazakov

Michael Kazakov (88a1b3e4) at 17 Mar 11:45

defaults referenced to node['gitlab']['nginx']

tag:gitlab.com,2026-03-17:5211450207 Michael Kazakov pushed to project branch sh-fix-issue-9235 at Michael Kazakov / omnibus-gitlab 2026-03-17T08:11:34Z kivarum Michael Kazakov

Michael Kazakov (35ef37b3) at 17 Mar 08:11

changed logcursor restart mechanism

... and 1 more commit

tag:gitlab.com,2026-03-16:5209630969 Michael Kazakov commented on merge request !9133 at GitLab.org / omnibus-gitlab 2026-03-16T18:28:54Z kivarum Michael Kazakov

ok, will do the change tomorrow

tag:gitlab.com,2026-03-16:5209510637 Michael Kazakov commented on merge request !9133 at GitLab.org / omnibus-gitlab 2026-03-16T17:52:17Z kivarum Michael Kazakov

The code is not written by me. It is suggested by @mkozono. See #9235 (comment 3077578194)

tag:gitlab.com,2026-03-16:5208927980 Michael Kazakov commented on issue #9235 at GitLab.org / omnibus-gitlab 2026-03-16T15:27:27Z kivarum Michael Kazakov

@luciezhao Hi, Lucie! MR already done !9133

tag:gitlab.com,2026-03-09:5181703667 Michael Kazakov commented on merge request !9154 at GitLab.org / omnibus-gitlab 2026-03-09T10:16:30Z kivarum Michael Kazakov

we can remove them or define using the defaults in this case you can have them differ. But I can't imagine reason to do so.

tag:gitlab.com,2026-03-09:5181691346 Michael Kazakov commented on merge request !9154 at GitLab.org / omnibus-gitlab 2026-03-09T10:13:56Z kivarum Michael Kazakov

I took the values from the sources

tag:gitlab.com,2026-03-06:5174947587 Michael Kazakov closed issue #9661: Feature Request: Add KAS internal calls in NGINX Proxy Configuration at GitLab.org / omnibus-gitlab 2026-03-06T11:53:15Z kivarum Michael Kazakov tag:gitlab.com,2026-03-06:5174863814 Michael Kazakov commented on issue #704 at GitLab.org / cluster-integration / GitLab Agent for Kubernetes 2026-03-06T11:32:59Z kivarum Michael Kazakov

It may be related to gitlab-org/omnibus-gitlab#9638

tag:gitlab.com,2026-03-06:5174790851 Michael Kazakov commented on issue #9661 at GitLab.org / omnibus-gitlab 2026-03-06T11:14:22Z kivarum Michael Kazakov

@ash2k

In my infrastructure I use consul service which will go down automatically after fix gitlab-org/cluster-integration/gitlab-agent#813

tag:gitlab.com,2026-03-06:5174322432 Michael Kazakov commented on merge request !9154 at GitLab.org / omnibus-gitlab 2026-03-06T09:24:18Z kivarum Michael Kazakov

@stanhu

Can You review the MR?

tag:gitlab.com,2026-03-06:5173894729 Michael Kazakov commented on issue #9661 at GitLab.org / omnibus-gitlab 2026-03-06T07:18:28Z kivarum Michael Kazakov

Current omnibus nginx service is configured to serve external (agent requests). While rails requests are going directly to KAS api port. All works file when KAS and rails are on the same host. When we move KAS on separated host we have to route rails requests to that host. Also we need add TLS to the connection to male it secure. This setup can be configured using gilab.rb.

gitlab.rb on rais/sidekiq

gitlab_rails['gitlab_kas_internal_url'] = 'grpcs://kas-host:8153'

gitlab.rb on kas node

gitlab_kas['internal_api_listen_address'] = '0.0.0.0:8153'
gitlab_kas['internal_api_certificate_file'] = '<path to SSL certificate file>'
gitlab_kas['internal_api_key_file'] = '<path to SSL certificate key file>'

So, we can leave omnibus as it is. Just put this block in documentation

tag:gitlab.com,2026-03-05:5170618081 Michael Kazakov commented on issue #9661 at GitLab.org / omnibus-gitlab 2026-03-05T12:10:38Z kivarum Michael Kazakov

@ash2k

After deep look into omnibus code I fund that the best way to add proxy for KAS API is create a new nginx service. Also I found the way to expose API port with TLS configured and connect rails directly to it using gitlab.rb. I've tested the config and it works fine.

So, question is. Shall we need proxy between Rails and KAS API?

tag:gitlab.com,2026-03-04:5166848416 Michael Kazakov commented on issue #9625 at GitLab.org / omnibus-gitlab 2026-03-04T15:13:53Z kivarum Michael Kazakov

Working workaround

gitlab.rb on rais/sidekiq

gitlab_rails['gitlab_kas_internal_url'] = 'grpcs://kas-host:8153'

gitlab.rb on kas node

gitlab_kas['internal_api_listen_address'] = '0.0.0.0:8153'
gitlab_kas['internal_api_certificate_file'] = '<path to SSL certificate file>'
gitlab_kas['internal_api_key_file'] = '<path to SSL certificate key file>'
tag:gitlab.com,2026-03-04:5165528038 Michael Kazakov commented on issue #9661 at GitLab.org / omnibus-gitlab 2026-03-04T10:14:53Z kivarum Michael Kazakov

@ash2k Implementation plan:

  • Duplicate nginx-gitlab-kas.conf.erb into a separate file. Suggest nginx-gitlab-kas-external.conf.erb (port 443) and nginx-gitlab-kas-internal.conf.erb (port 8153)
  • Introduce an opt-in flag to enable it.
  • There should be a way to specify IPs of all kas instances in the config. They can be grouped with upstream. Let's call it gitlab_kas_internal_upstream.
  • We only need a single location that sends everything to 8153, similar to the existing /gitlab.agent - grpc_pass <%= node['gitlab_kas']['upstream_grpc_scheme'] %>://gitlab_kas_internal_upstream;
  • Add some tests.
  • Add documentation to https://docs.gitlab.com/administration/clusters/kas/#use-a-load-balancer-or-reverse-proxy-with-multiple-kas-instances.

Based on gitlab-org/cluster-integration/gitlab-agent#810 (comment 3094216212) Locations will be:

  • /gitlab.agent. -> port 8153
  • /gitlab.agent.(agent_configuration|agent_registrar). -> port 8150