Skip to content

Commit

Permalink
Fix charm/howto/install-custom
Browse files Browse the repository at this point in the history
* minor linter issues
* add missing --channel flag to deployment command
  • Loading branch information
bschimke95 committed Jan 14, 2025
1 parent 7377a1d commit 4bb7fcd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions docs/src/_parts/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,6 @@ juju deploy k8s --channel=latest/stable \
--base "[email protected]" \
--constraints "cores=2 mem=8G root-disk=16G virt-type=virtual-machine"
<!-- juju vm end -->
<!-- juju controlplane custom config start -->
juju deploy k8s --config ./k8s-config.yaml --channel=1.32/stable
<!-- juju controlplane custom config end -->
7 changes: 5 additions & 2 deletions docs/src/charm/howto/install-custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ configuration options.
## What you'll need

This guide assumes the following:

- You have Juju installed on your system with your cloud credentials
configured and a controller bootstrapped
- A Juju model is created and selected
Expand Down Expand Up @@ -42,6 +43,7 @@ k8s:
local-storage-enabled: true
local-storage-reclaim-policy: "Retain"
```
You can find a full list of configuration options in the
[charm configurations] page.
Expand All @@ -56,8 +58,9 @@ align with your requirements.

Deploy the `k8s` charm with your custom configuration:

```bash
juju deploy k8s --config ./k8s-config.yaml
```{literalinclude} ../../_parts/install.md
:start-after: <!-- juju controlplane custom config start -->
:end-before: <!-- juju controlplane custom config end -->
```

## Bootstrap the cluster
Expand Down

0 comments on commit 4bb7fcd

Please sign in to comment.