-
Notifications
You must be signed in to change notification settings - Fork 0
Switch to unified gateway deployment #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
105 changes: 105 additions & 0 deletions
105
docs/modules/ROOT/pages/how-tos/migrate-to-gateway.adoc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,105 @@ | ||
| = Migration to Unified Gateway Deployment | ||
|
|
||
| [IMPORTANT] | ||
| ==== | ||
| The nginx deployment is deprecated and will be removed with Helm chart v7.x. | ||
| It is recommended to migrate to the unified gateway deployment. | ||
| ==== | ||
|
|
||
| You have the following options to migrate to the unified gateway deployment: | ||
|
|
||
| * Migrate with short service disruption | ||
| * Migrate without service disruption | ||
|
|
||
|
|
||
| == Migrate with Short Service Disruption | ||
|
|
||
| You dont have to do any migration steps, v4.x of this component will automatically migrate to the unified gateway deployment. | ||
| If you have integrated this Mimir as datasource in Grafana, then the service name will change and you have to update your Grafana deployment. | ||
|
|
||
| Update the Grafana datasource url like following: | ||
|
|
||
| Old name: `<instance_name>-nginx.<instance_namespace>.svc.cluster.local` | ||
|
|
||
| New name: `<instance_name>-gateway.<instance_namespace>.svc.cluster.local` | ||
|
|
||
|
|
||
| == Migrate without Service Disruption | ||
|
|
||
| This guide follows the official documentaton for the https://grafana.com/docs/helm-charts/mimir-distributed/v5.8.x/migration-guides/migrate-to-unified-proxy-deployment[Migration to Unified Gateway Deployment]. | ||
|
|
||
| [TIP] | ||
| ==== | ||
| Please read the official documentation about the migration before you continue. | ||
| ==== | ||
|
|
||
| === Step 1: Enable Nginx Deployment | ||
|
|
||
| When upgrading to this version of the component, make sure you have nginx and gateway (default) enabled: | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| components: | ||
| gateway: | ||
| enabled: true <1> | ||
| nginx: | ||
| enabled: true <2> | ||
| ---- | ||
| <1> In component v4.x this is enabled by default. | ||
| <2> Enable nginx deployment, this will also keep the ingress associated with the nginx deployment. | ||
|
|
||
| Compile and push the catalog. | ||
|
|
||
| === (Optional) Keep the old Service Name | ||
|
|
||
| If you want to migrate to the unified gateway deployment but want to keep the service name, you need to add the following configuration: | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| components: | ||
| gateway: | ||
| service: | ||
| nameOverride: mimir-nginx <1> | ||
| ---- | ||
| <1> Overwrite the service name. | ||
|
|
||
| [IMPORTANT] | ||
| ==== | ||
| When you override the service name, use the correct name. | ||
| The example above is only for illustration. | ||
| ==== | ||
|
|
||
| === Step 2: Disable Nginx Deployment | ||
|
|
||
| In the first step we ensured the gateway deployment is present but not yet active, this makes sure the transition to the gateway deployment has the least disruption. | ||
|
|
||
| Disable nginx deployment and optionally keep the service name the same as before: | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| components: | ||
| gateway: | ||
| enabled: true <1> | ||
| nginx: | ||
| enabled: false <2> | ||
| ---- | ||
| <1> In component v4.x this is enabled by default, you can remove that configuration. | ||
| <2> In component v4.x this is disabled by default, you can remove that configuration. | ||
|
|
||
| Compile and push the catalog. | ||
|
|
||
|
|
||
| == (Optional) Keep Nginx Deployment | ||
|
|
||
| To stay with the deprecated nginx deployment you need to add the following configuration: | ||
|
|
||
| [source,yaml] | ||
| ---- | ||
| components: | ||
| gateway: | ||
| enabled: false <1> | ||
| nginx: | ||
| enabled: true <2> | ||
| ---- | ||
| <1> Disable gateway deployment. | ||
| <2> Enable nginx deployment. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| * xref:index.adoc[Home] | ||
| * xref:how-tos/upgrade-mimir-v1-v2.adoc[Upgrade component-mimir from v1 to v2] | ||
| * xref:how-tos/upgrade-mimir-v3-v4.adoc[Upgrade component-mimir from v3 to v4] | ||
| * xref:references/parameters.adoc[Parameters] | ||
| * xref:how-tos/upgrade-mimir-v1-v2.adoc[] | ||
| * xref:how-tos/upgrade-mimir-v3-v4.adoc[] | ||
| * xref:how-tos/migrate-to-gateway.adoc[] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.