-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update Kubernetes deployments docs (#1339)
* doc: Add a note about database migrations for AKS * doc: Add a note about db migration to General k8s docs * doc: Add a note about k8s version upgrades for AKS * doc: Fix spelling
- Loading branch information
Showing
2 changed files
with
60 additions
and
1 deletion.
There are no files selected for viewing
37 changes: 37 additions & 0 deletions
37
doc/content/the-things-stack/host/kubernetes/azure/upgrading/_index.md
This file contains 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,37 @@ | ||
--- | ||
title: "Upgrading" | ||
description: "" | ||
weight: 4 | ||
--- | ||
|
||
This page describes the steps for upgrading {{% tts %}} on Azure Kubernetes Service. | ||
|
||
<!--more--> | ||
|
||
## Database Migration | ||
|
||
{{% tts %}} database schema is managed between minor versions using database migrations. | ||
|
||
{{< note >}} | ||
User are informed of required migrations for each version via the [Release Notes](https://www.thethingsindustries.com/docs/whats-new/). It’s mandatory to run required database migrations for {{% tts %}} to function properly. | ||
{{</ note >}} | ||
|
||
To migrate the database during an upgrade set the respective Terraform variables to `true`. | ||
|
||
| Service | Variable | | ||
| ------- | ---------------- | | ||
| IS | `is-db-migrate` | | ||
| NOC | `noc-db-migrate` | | ||
|
||
{{< note >}} | ||
For example to migrate Identity Server and Network Operations Center databases run the following command. | ||
|
||
```bash | ||
$ terraform apply -var='is-db-migrate=true' -var='noc-db-migrate=true' | ||
``` | ||
|
||
{{</ note >}} | ||
|
||
## Kubernetes version upgrade | ||
|
||
AKS Kubernetes version upgrades have to be performed sequentially for each minor version. For example to upgrade from `1.25` to `1.27` it's necessary to upgrade to version `1.26` first as an intermediate step. For more information refer to the [official documentation](https://learn.microsoft.com/en-us/azure/aks/supported-kubernetes-versions). |
This file contains 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