Commit e83db68d authored by Marcel Amirault's avatar Marcel Amirault

Merge branch 'cat-k8s-geo-secondary-proxying-docs' into 'master'

Provide k8s-specific docs for disabling Geo secondary proxying

See merge request gitlab-org/gitlab!75647
parents 2cb2e671 1cc9e956
...@@ -71,7 +71,7 @@ a single URL used by all Geo sites, including the primary. ...@@ -71,7 +71,7 @@ a single URL used by all Geo sites, including the primary.
## Disable Geo proxying ## Disable Geo proxying
You can disable the secondary proxying on each Geo site, separately, by following these steps: You can disable the secondary proxying on each Geo site, separately, by following these steps with Omnibus-based packages:
1. SSH into each application node (serving user traffic directly) on your secondary Geo site 1. SSH into each application node (serving user traffic directly) on your secondary Geo site
and add the following environment variable: and add the following environment variable:
...@@ -92,6 +92,16 @@ You can disable the secondary proxying on each Geo site, separately, by followin ...@@ -92,6 +92,16 @@ You can disable the secondary proxying on each Geo site, separately, by followin
gitlab-ctl reconfigure gitlab-ctl reconfigure
``` ```
In Kubernetes, you can use `--set gitlab.webservice.extraEnv.GEO_SECONDARY_PROXY="0"`,
or specify the following in your values file:
```yaml
gitlab:
webservice:
extraEnv:
GEO_SECONDARY_PROXY: "0"
```
## Enable Geo proxying with Separate URLs ## Enable Geo proxying with Separate URLs
The ability to use proxying with separate URLs is still in development. You can follow the The ability to use proxying with separate URLs is still in development. You can follow the
...@@ -105,6 +115,10 @@ SSH into one node running Rails on your primary Geo site and run: ...@@ -105,6 +115,10 @@ SSH into one node running Rails on your primary Geo site and run:
sudo gitlab-rails runner "Feature.enable(:geo_secondary_proxy_separate_urls)" sudo gitlab-rails runner "Feature.enable(:geo_secondary_proxy_separate_urls)"
``` ```
In Kubernetes, you can run the same command in the toolbox pod. Refer to the
[Kubernetes cheat sheet](../../troubleshooting/kubernetes_cheat_sheet.md#gitlab-specific-kubernetes-information)
for details.
## Limitations ## Limitations
The asynchronous Geo replication can cause unexpected issues when secondary proxying is used, for accelerated The asynchronous Geo replication can cause unexpected issues when secondary proxying is used, for accelerated
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment