2022-01-23 22:31:22 +07:00
|
|
|
# Single node cluster adjustments
|
|
|
|
|
|
|
|
Update the following changes, then commit and push.
|
|
|
|
|
|
|
|
## Reduce Longhorn replica count
|
|
|
|
|
|
|
|
Set the `defaultClassReplicaCount` to 1:
|
|
|
|
|
2022-07-06 12:33:35 +07:00
|
|
|
```yaml title="system/longhorn-system/values.yaml" hl_lines="6"
|
|
|
|
--8<--
|
|
|
|
system/longhorn-system/values.yaml
|
|
|
|
--8<--
|
2022-01-23 22:31:22 +07:00
|
|
|
```
|
|
|
|
|
2022-02-25 01:50:45 +07:00
|
|
|
## Disable automatic upgrade for OS and k3s
|
2022-01-23 22:31:22 +07:00
|
|
|
|
2022-02-25 01:50:45 +07:00
|
|
|
Because they will try to drain the only node, the pods will have no place to go.
|
|
|
|
Remove them entirely:
|
2022-01-23 22:31:22 +07:00
|
|
|
|
|
|
|
```sh
|
2022-02-25 01:50:45 +07:00
|
|
|
rm -rf system/kured
|
2022-01-23 22:31:22 +07:00
|
|
|
rm -rf system/system-upgrade
|
|
|
|
```
|
2022-02-25 01:50:45 +07:00
|
|
|
|
|
|
|
Commit and push the change.
|
|
|
|
You can revert it later when you add more nodes.
|