Skip to content

Commit 77c8fc0

Browse files
authored
Merge pull request #89 from jhkrug/1.5.5
Fix some code block lacking subs=+attributes so {current-version} was…
2 parents b75236e + fb01942 commit 77c8fc0

File tree

7 files changed

+18
-0
lines changed

7 files changed

+18
-0
lines changed

modules/en/pages/deploy/install/index.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,7 @@ IMPORTANT: On SUSE and openSUSE, the `iscsi_tcp` module is included only in the
173173

174174
We also provide an `iscsi` installer to make it easier for users to install `open-iscsi` automatically:
175175

176+
[subs="+attributes",shell]
176177
----
177178
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/deploy/prerequisite/longhorn-iscsi-installation.yaml
178179
----
@@ -244,12 +245,14 @@ zypper install nfs-client
244245

245246
We also provide an `nfs` installer to make it easier for users to install `nfs-client` automatically:
246247

248+
[subs="+attributes", console]
247249
----
248250
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/deploy/prerequisite/longhorn-nfs-installation.yaml
249251
----
250252

251253
After the deployment, run the following command to check pods' status of the installer:
252254

255+
[subs="+attributes", console]
253256
----
254257
kubectl get pod | grep longhorn-nfs-installation
255258
NAME READY STATUS RESTARTS AGE

modules/en/pages/deploy/install/install-with-helm.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ In this section, you will learn how to install Longhorn with Helm.
99
* Kubernetes cluster: Ensure that each node fulfills the xref:#_installation_requirements[installation requirements].
1010
* Your workstation: Install https://helm.sh/docs/[Helm] v3.0 or later.
1111

12+
[subs="+attributes", console]
1213
____
1314
https://github.com/longhorn/longhorn/blob/v{current-version}/scripts/environment_check.sh[This script] can be used to check the Longhorn environment for potential issues.
1415
____

modules/en/pages/deploy/uninstall/index.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,13 +36,15 @@ helm uninstall longhorn -n longhorn-system
3636

3737
. Create the uninstallation job to clean up CRDs from the system and wait for success:
3838
+
39+
[subs="+attributes", console]
3940
----
4041
kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/uninstall/uninstall.yaml
4142
kubectl get job/longhorn-uninstall -n longhorn-system -w
4243
----
4344
+
4445
Example output:
4546
+
47+
[subs="+attributes", console]
4648
----
4749
$ kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/uninstall/uninstall.yaml
4850
serviceaccount/longhorn-uninstall-service-account created
@@ -58,6 +60,7 @@ Example output:
5860

5961
. Remove remaining components:
6062
+
63+
[subs="+attributes", console]
6164
----
6265
kubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/deploy/longhorn.yaml
6366
kubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/uninstall/uninstall.yaml

modules/en/pages/deploy/upgrade/longhorn-manager.adoc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ image::screenshots/install/cluster-explorer.png[Image]
4949

5050
To upgrade with kubectl, run this command:
5151

52+
[subs="+attributes", console]
5253
----
5354
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/deploy/longhorn.yaml
5455
----
@@ -57,6 +58,7 @@ kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-v
5758

5859
To upgrade with Helm, run this command:
5960

61+
[subs="+attributes", console]
6062
----
6163
helm upgrade longhorn longhorn/longhorn --namespace longhorn-system --version {current-version}
6264
----
@@ -144,6 +146,7 @@ To recover, you need to upgrade to the previously installed revision at `Rancher
144146

145147
* To clean up the deprecated StorageClass, run this command:
146148
+
149+
[subs="+attributes", console]
147150
----
148151
kubectl delete -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/examples/storageclass.yaml
149152
----

modules/en/pages/snapshots-and-backups/backup-and-restore/set-backup-target.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,7 @@ Longhorn provides sample backupstore server setups for testing purposes. You ca
242242

243243
. Set up a MinIO S3 server for the backupstore in the `longhorn-system` namespace.
244244
+
245+
[subs="+attributes", console]
245246
----
246247
kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/deploy/backupstores/minio-backupstore.yaml
247248
----

modules/en/pages/v2-data-engine/quick-start.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ apt install -y linux-modules-extra-`uname -r`
4949

5050
We provide a manifest that helps you configure the kernel modules and huge pages automatically, making it easier to set up.
5151

52+
[subs="+attributes", console]
5253
----
5354
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/deploy/prerequisite/longhorn-spdk-setup.yaml
5455
----
@@ -87,6 +88,7 @@ echo "vm.nr_hugepages=512" >> /etc/sysctl.conf
8788

8889
We provide a manifest that helps you finish the deployment on each Longhorn node.
8990

91+
[subs="+attributes", console]
9092
----
9193
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/deploy/prerequisite/longhorn-nvme-cli-installation.yaml
9294
----
@@ -115,6 +117,7 @@ After finishing the above steps, restart kubelet on each node.
115117

116118
Make sure everything is correctly configured and installed by
117119

120+
[subs="+attributes", console]
118121
----
119122
bash -c "$(curl -sfL https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/scripts/environment_check.sh)" -s -s
120123
----
@@ -238,6 +241,7 @@ After the installation and configuration, we can dynamically provision a Persist
238241

239242
Use following command to create a StorageClass called `longhorn-spdk`. Set `parameters.backendStoreDriver` to `v2` to utilize V2 Data Engine.
240243

244+
[subs="+attributes", console]
241245
----
242246
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/examples/v2/storageclass.yaml
243247
----
@@ -246,6 +250,7 @@ kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-v
246250

247251
Create a Pod that uses Longhorn volumes using V2 Data Engine by running this command:
248252

253+
[subs="+attributes", console]
249254
----
250255
kubectl apply -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/examples/v2/pod_with_pvc.yaml
251256
----

modules/en/pages/volumes-and-nodes/create-volumes.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ When the Pod is deployed, the Kubernetes master will check the PersistentVolumeC
1818

1919
. Use following command to create a StorageClass called `longhorn`:
2020
+
21+
[subs="+attributes", console]
2122
----
2223
kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/examples/storageclass.yaml
2324
----
@@ -55,6 +56,7 @@ In particular, starting with v1.4.0, the parameter `mkfsParams` can be used to s
5556

5657
. Create a Pod that uses Longhorn volumes by running this command:
5758
+
59+
[subs="+attributes", console]
5860
----
5961
kubectl create -f https://raw.githubusercontent.com/longhorn/longhorn/v{current-version}/examples/pod_with_pvc.yaml
6062
----

0 commit comments

Comments
 (0)