You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a major release update of Longhorn. Please read Longhorn important notes before upgrading:
11
+
12
+
-[Longhorn Important Notes 1.8.0](https://longhorn.io/docs/1.8.0/important-notes/)
13
+
-[Longhorn Important Notes 1.8.1](https://longhorn.io/docs/1.8.1/important-notes/)
14
+
-[Longhorn Important Notes 1.8.2](https://longhorn.io/docs/1.8.2/important-notes/)
15
+
16
+
Consider doing a [Longhorn System Backup](https://longhorn.io/docs/1.8.2/advanced-resources/system-backup-restore/backup-longhorn-system/) before the upgrade!
17
+
18
+
Starting with v1.5.0, Longhorn only supports upgrades from one minor version to the next. For example, upgrading from 1.7.x to 1.8.x is supported, but skipping versions (e.g., from 1.6.x to 1.8.x) is not.
19
+
20
+
Moreover, Longhorn does not support downgrades to earlier versions. This restriction helps prevent unexpected system behavior and issues associated with function incompatibility, deprecation, or removal.
This is a major release update of Longhorn. Please read [Longhorn Important Notes](https://longhorn.io/docs/archives/1.7.3/important-notes) before upgrading!
Copy file name to clipboardExpand all lines: README.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,7 +9,7 @@ This Ansible role is used in my blog series [Kubernetes the not so hard way with
9
9
10
10
## Versions
11
11
12
-
I tag every release and try to stay with [semantic versioning](http://semver.org). If you want to use the role I recommend to checkout the latest tag. The master branch is basically development while the tags mark stable releases. But in general I try to keep master in good shape too. A tag `0.6.0+1.7.3` means this is release `0.6.0` of this role and it contains Longhorn chart version `1.7.3` (which normally is the same as the Longhorn version itself). If the role itself changes `X.Y.Z` before `+` will increase. If the Longhorn chart version changes `X.Y.Z` after `+` will increase too. This allows to tag bugfixes and new major versions of the role while it's still developed for a specific Longhorn release.
12
+
I tag every release and try to stay with [semantic versioning](http://semver.org). If you want to use the role I recommend to checkout the latest tag. The master branch is basically development while the tags mark stable releases. But in general I try to keep master in good shape too. A tag `0.7.0+1.8.2` means this is release `0.7.0` of this role and it contains Longhorn chart version `1.8.2` (which normally is the same as the Longhorn version itself). If the role itself changes `X.Y.Z` before `+` will increase. If the Longhorn chart version changes `X.Y.Z` after `+` will increase too. This allows to tag bugfixes and new major versions of the role while it's still developed for a specific Longhorn release.
13
13
14
14
## Requirements
15
15
@@ -37,7 +37,7 @@ See [CHANGELOG.md](https://github.com/githubixx/ansible-role-longhorn-kubernetes
37
37
38
38
```yaml
39
39
# Helm chart version
40
-
longhorn_chart_version: "1.7.3"
40
+
longhorn_chart_version: "1.8.2"
41
41
42
42
# Helm release name
43
43
longhorn_release_name: "longhorn"
@@ -176,13 +176,13 @@ longhorn_label_nodes: false
176
176
177
177
### Longhorn documentation
178
178
179
-
Before you start installing Longhorn you REALLY want to read the [The Longhorn Documentation v1.7.3](https://longhorn.io/docs/archives/1.7.3/)! As data is the most valuable thing you can have you should understand how Longhorn works and don't forget to add backups later ;-). Esp. have a look at the [best practices](https://longhorn.io/docs/archives/1.7.3/best-practices/).
179
+
Before you start installing Longhorn you REALLY want to read the [The Longhorn Documentation v1.8.2](https://longhorn.io/docs/1.8.2/)! As data is the most valuable thing you can have you should understand how Longhorn works and don't forget to add backups later ;-). Esp. have a look at the [best practices](https://longhorn.io/docs/1.8.2/best-practices/).
180
180
181
181
### Helm chart values
182
182
183
-
That said: The first thing to do is to check `templates/longhorn_values_default.yml.j2`. This file contains the values/settings for the Longhorn Helm chart that are partly default anyways (just to avoid that someone changes the defaults) or different to the default ones which are located at [values.yaml](https://github.com/longhorn/longhorn/blob/v1.7.3/chart/values.yaml). All settings can be found in the [Settings Reference](https://longhorn.io/docs/archives/1.7.3/references/settings/).
183
+
That said: The first thing to do is to check `templates/longhorn_values_default.yml.j2`. This file contains the values/settings for the Longhorn Helm chart that are partly default anyways (just to avoid that someone changes the defaults) or different to the default ones which are located at [values.yaml](https://github.com/longhorn/longhorn/blob/v1.8.2/chart/values.yaml). All settings can be found in the [Settings Reference](https://longhorn.io/docs/1.8.2/references/settings/).
184
184
185
-
To use your own values just create a file called `longhorn_values_user.yml.j2` and put it into the `templates` directory. Then this Longhorn role will use that file to render the Helm values. You can use `templates/longhorn_values_default.yml.j2` as a template or just start from scratch. As mentioned above you can modify all settings for the Longhorn Helm chart that are different to the default ones which are located at [values.yaml](https://github.com/longhorn/longhorn/blob/v1.7.3/chart/values.yaml).
185
+
To use your own values just create a file called `longhorn_values_user.yml.j2` and put it into the `templates` directory. Then this Longhorn role will use that file to render the Helm values. You can use `templates/longhorn_values_default.yml.j2` as a template or just start from scratch. As mentioned above you can modify all settings for the Longhorn Helm chart that are different to the default ones which are located at [values.yaml](https://github.com/longhorn/longhorn/blob/v1.8.2/chart/values.yaml).
186
186
187
187
### Render and verify deployment manifests
188
188
@@ -218,15 +218,15 @@ To check if everything was deployed use the usual `kubectl` commands like `kubec
218
218
219
219
### Update/upgrade
220
220
221
-
As Longhorn gets updates/upgrades every few weeks/months the role also can do upgrades. For updates/upgrades (esp. major upgrades) have a look at `tasks/upgrade.yml` to see what's happening before, during and after the update. In general this Ansible role does what's described in [Upgrade with Helm](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/longhorn-manager#upgrade-with-helm) in the [Upgrading Longhorn Manager](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/longhorn-manager/) documentation. So in this step only the Longhorn Manager gets updated. After Ansible applied the update/upgrade wait till all Longhorn Pods are ready again.
221
+
As Longhorn gets updates/upgrades every few weeks/months the role also can do upgrades. For updates/upgrades (esp. major upgrades) have a look at `tasks/upgrade.yml` to see what's happening before, during and after the update. In general this Ansible role does what's described in [Upgrade with Helm](https://longhorn.io/docs/1.8.2/deploy/upgrade/longhorn-manager#upgrade-with-helm) in the [Upgrading Longhorn Manager](https://longhorn.io/docs/1.8.2/deploy/upgrade/longhorn-manager/) documentation. So in this step only the Longhorn Manager gets updated. After Ansible applied the update/upgrade wait till all Longhorn Pods are ready again.
222
222
223
-
By default the Longhorn volume engines are NOT upgraded automatically. That means in the `Volumes` overview of the Longhorn UI one needs to click on the burger menu in the `Operation` column and run `Upgrade Engine`. To make yourself live easier, **make sure** that all volumes are in `Healthy` state before you upgrade anything. If you want to avoid this manual task of upgrading the volumes to the latest engine version you can set `Concurrent Automatic Engine Upgrade Per Node Limit` to `1` e.g. in `Settings / General` in the Longhorn UI. This setting controls how Longhorn automatically upgrades volumes' engines after upgrading Longhorn manager. The value of this setting specifies the maximum number of engines per node that are allowed to upgrade to the default engine image at the same time. If the value is `0`, Longhorn will not automatically upgrade volumes' engines to default version. For further information see [Automatically Upgrading Longhorn Engine](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/auto-upgrade-engine/). If you want to do the volume engine upgrade manually have a look at [Manually Upgrading Longhorn Engine](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/upgrade-engine/)
223
+
By default the Longhorn volume engines are NOT upgraded automatically. That means in the `Volumes` overview of the Longhorn UI one needs to click on the burger menu in the `Operation` column and run `Upgrade Engine`. To make yourself live easier, **make sure** that all volumes are in `Healthy` state before you upgrade anything. If you want to avoid this manual task of upgrading the volumes to the latest engine version you can set `Concurrent Automatic Engine Upgrade Per Node Limit` to `1` e.g. in `Settings / General` in the Longhorn UI. This setting controls how Longhorn automatically upgrades volumes' engines after upgrading Longhorn manager. The value of this setting specifies the maximum number of engines per node that are allowed to upgrade to the default engine image at the same time. If the value is `0`, Longhorn will not automatically upgrade volumes' engines to default version. For further information see [Automatically Upgrading Longhorn Engine](https://longhorn.io/docs/1.8.2/deploy/upgrade/auto-upgrade-engine/). If you want to do the volume engine upgrade manually have a look at [Manually Upgrading Longhorn Engine](https://longhorn.io/docs/1.8.2/deploy/upgrade/upgrade-engine/)
224
224
225
-
Of course you should consult Longhorn's v1.7.3[upgrade guide](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/) to check for major changes and stuff like that before upgrading. Now is also a good time to check if the backups are in place and if the backups are actually valid ;-)
225
+
Of course you should consult Longhorn's v1.8.2[upgrade guide](https://longhorn.io/docs/1.8.2/deploy/upgrade/) to check for major changes and stuff like that before upgrading. Now is also a good time to check if the backups are in place and if the backups are actually valid ;-)
226
226
227
-
After consulting Longhorn's [upgrade guide](https://longhorn.io/docs/archives/1.7.3/deploy/upgrade/) you basically only need to change `longhorn_chart_version` variable e.g. from `1.7.2` to `1.7.3` for a patch release or from `1.6.3` to `1.7.3` for a major upgrade. And of course the Helm values need to be adjusted for potential breaking changes (if any are mentioned in the upgrade guide e.g.). But please remember that MOST settings shouldn't be changed anymore via the Helm values file but via the Longhorn UI in `Settings / General` e.g.
227
+
After consulting Longhorn's [upgrade guide](https://longhorn.io/docs/1.8.2/deploy/upgrade/) you basically only need to change `longhorn_chart_version` variable e.g. from `1.8.1` to `1.8.2` for a patch release or from `1.7.3` to `1.8.2` for a major upgrade. And of course the Helm values need to be adjusted for potential breaking changes (if any are mentioned in the upgrade guide e.g.). But please remember that MOST settings shouldn't be changed anymore via the Helm values file but via the Longhorn UI in `Settings / General` e.g.
228
228
229
-
You can also use the upgrade method if you keep the version number and just want to change some Helm values or other settings. But please be aware that changing some of settings might have some serious consequences if you already have volumes deployed! Not all Longhorn settings can be changed just by changing a number or a string. So you really want to consult the [Settings reference](https://longhorn.io/docs/archives/1.7.3/references/settings/) to figure out what might happen if you change this or that setting or what you need to do before you apply a changed setting!
229
+
You can also use the upgrade method if you keep the version number and just want to change some Helm values or other settings. But please be aware that changing some of settings might have some serious consequences if you already have volumes deployed! Not all Longhorn settings can be changed just by changing a number or a string. So you really want to consult the [Settings reference](https://longhorn.io/docs/1.8.2/references/settings/) to figure out what might happen if you change this or that setting or what you need to do before you apply a changed setting!
230
230
231
231
That said to actually do the update/upgrade run
232
232
@@ -246,7 +246,7 @@ ansible-playbook \
246
246
k8s.yml
247
247
```
248
248
249
-
Longhorn has a [Deleting Confirmation Flag](https://longhorn.io/docs/archives/1.7.3/references/settings/#deleting-confirmation-flag) which is set to `false` by default. In this case Longhorn refuses to be uninstalled. By setting `--extra-vars longhorn_delete=true` the Ansible role will set this flag to `true` and afterwards the Longhorn resources can be deleted by the role. Without `longhorn_delete` variable the role will refuse to finish uninstallation.
249
+
Longhorn has a [Deleting Confirmation Flag](https://longhorn.io/docs/1.8.2/references/settings/#deleting-confirmation-flag) which is set to `false` by default. In this case Longhorn refuses to be uninstalled. By setting `--extra-vars longhorn_delete=true` the Ansible role will set this flag to `true` and afterwards the Longhorn resources can be deleted by the role. Without `longhorn_delete` variable the role will refuse to finish uninstallation.
0 commit comments