Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
HomayoonAlimohammadi committed Jan 9, 2025
1 parent bc66164 commit 9c10730
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/src/snap/howto/upgrades.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,18 +26,22 @@ These updates ensure that the latest changes in the installed track are applied.
Patch upgrades can also be triggered manually by following the steps below.

1. **List available revisions:**

```
snap info k8s
```

2. **Refresh the snap:**

```
snap refresh k8s
```

3. **Verify the upgrade:**

Ensure that the upgrade was successful by checking the version of the snap and
confirming that the cluster is ready:

```
snap info k8s
sudo k8s status --wait-ready
Expand All @@ -51,20 +55,25 @@ To upgrade to a new minor version, the snap channel needs to be changed.


1. **List available channels:**

```
snap info k8s
```

2. **Change the snap channel:**

The {{product}} snap channel can be changed by using the `snap refresh`
command.

```
snap refresh --channel=1.33/stable k8s
```

3. **Verify the upgrade:**

Ensure that the upgrade was successful by checking the version of the snap
and confirming that the cluster is ready:

```
snap info k8s
sudo k8s status --wait-ready
Expand All @@ -79,10 +88,13 @@ In a multi-node cluster, the upgrade should be performed on all nodes.
To prevent automatic updates, the snap can be tied to a specific revision.
`snap refresh --hold[=<duration>]` holds snap refreshes for a specified
duration (or forever, if no value is specified).

```
snap refresh k8s --hold
```

Or specify a time window:

```
snap refresh k8s --hold=24h
```
Expand Down

0 comments on commit 9c10730

Please sign in to comment.