Skip to content

Commit

Permalink
Address linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
addyess committed Jan 13, 2025
1 parent 9164280 commit 17462bf
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions docs/src/charm/reference/troubleshooting.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ issues dealing specifically with the charm.

### Problem

Control-Plane or Worker nodes are automatically marked with a label that is unwanted.
Control-Plane or Worker nodes are automatically marked with a label that is
unwanted.

For example, the control-plane node may be marked with both control-plane and worker roles
For example, the control-plane node may be marked with both control-plane and
worker roles

```
node-role.kubernetes.io/control-plane=
Expand All @@ -19,10 +21,13 @@ node-role.kubernetes.io/worker=

### Explanation

Each kubernetes node comes with a set of node labels enabled by default. The k8s snap defaults with both
control-plane and worker role labels, while the worker node only has a role label.
Each kubernetes node comes with a set of node labels enabled by default. The k8s
snap defaults with both control-plane and worker role labels, while the worker
node only has a role label.

For example, consider the following simply deployment with a worker and a
control-plane.

For example, consider the following simply deployment with a worker and a control-plane
```sh
$ sudo k8s kubectl get nodes
NAME STATUS ROLES AGE VERSION
Expand All @@ -33,7 +38,8 @@ juju-c212aa-2 Ready control-plane,worker 3h44m v1.32.0

### Solution

Adjusting the roles (or any label) be executed by adjusting the applications' configuration of `node-labels`
Adjusting the roles (or any label) be executed by adjusting the application's
configuration of `node-labels`.

To add another node label:

Expand Down

0 comments on commit 17462bf

Please sign in to comment.