-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Docs] replace install command with literalinclude (#860)
* replace install command with literalinclude when updating the docs now we only have to update install.md
- Loading branch information
Showing
14 changed files
with
242 additions
and
202 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
product: 'Canonical Kubernetes' | ||
version: '1.31' | ||
channel: '1.31/edge' | ||
channel: '1.31/candidate' | ||
multi_line_example: |- | ||
*Multi-line* text | ||
that uses basic **markup**. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
``` | ||
sudo snap install k8s --classic --channel=1.31/edge | ||
``` | ||
<!-- snap start --> | ||
sudo snap install k8s --classic --channel=1.31-classic/candidate | ||
<!-- snap end --> | ||
<!-- lxd start --> | ||
lxc exec k8s -- sudo snap install k8s --classic --channel=1.31-classic/candidate | ||
<!-- lxd end --> | ||
<!-- offline start --> | ||
sudo snap download k8s --channel 1.31-classic/candidate --basename k8s | ||
<!-- offline end --> | ||
<!-- juju control start --> | ||
juju deploy k8s --channel=1.31/candidate | ||
<!-- juju control end --> | ||
<!-- juju worker start --> | ||
juju deploy k8s-worker --channel=1.31/candidate -n 2 | ||
<!-- juju worker end --> | ||
<!-- juju control constraints start --> | ||
juju deploy k8s --channel=1.31/candidate --constraints='cores=2 mem=16G root-disk=40G' | ||
<!-- juju control constraints end --> | ||
<!-- juju worker constraints start --> | ||
juju deploy k8s-worker --channel=1.31/candidate --constraints='cores=2 mem=16G root-disk=40G' | ||
<!-- juju worker constraints end --> | ||
<!-- juju vm start --> | ||
juju deploy k8s --channel=latest/edge \ | ||
--base "[email protected]" \ | ||
--constraints "cores=2 mem=8G root-disk=16G virt-type=virtual-machine" | ||
<!-- juju vm end --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,14 +12,13 @@ This guide assumes that you have an existing {{product}} cluster. | |
See the [charm installation] guide for more details. | ||
|
||
In case of localhost/LXD Juju clouds, please make sure that the K8s units are | ||
configured to use VM containers with Ubuntu 22.04 as the base and adding the | ||
configured to use VM containers with Ubuntu 22.04 as the base and adding the | ||
``virt-type=virtual-machine`` constraint. In order for K8s to function properly, | ||
an adequate amount of resources must be allocated: | ||
|
||
``` | ||
juju deploy k8s --channel=latest/edge \ | ||
--base "[email protected]" \ | ||
--constraints "cores=2 mem=8G root-disk=16G virt-type=virtual-machine" | ||
```{literalinclude} ../../_parts/install.md | ||
:start-after: <!-- juju vm start --> | ||
:end-before: <!-- juju vm end --> | ||
``` | ||
|
||
## Deploying Ceph | ||
|
@@ -37,11 +36,11 @@ juju deploy -n 3 ceph-osd \ | |
juju integrate ceph-osd:mon ceph-mon:osd | ||
``` | ||
|
||
If using LXD, configure the OSD units to use VM containers by adding the | ||
If using LXD, configure the OSD units to use VM containers by adding the | ||
constraint: ``virt-type=virtual-machine``. | ||
|
||
Once the units are ready, deploy ``ceph-csi``. By default, this enables | ||
the ``ceph-xfs`` and ``ceph-ext4`` storage classes, which leverage | ||
Once the units are ready, deploy ``ceph-csi``. By default, this enables | ||
the ``ceph-xfs`` and ``ceph-ext4`` storage classes, which leverage | ||
Ceph RBD. | ||
|
||
``` | ||
|
@@ -134,4 +133,3 @@ sudo k8s kubectl wait pod/pv-writer-test \ | |
|
||
[charm installation]: ./charm | ||
[Ceph]: https://docs.ceph.com/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.