From 937a5a6751c0abcbbab3612d12c05d475e009c20 Mon Sep 17 00:00:00 2001 From: christofluethi Date: Tue, 15 Oct 2024 14:26:13 +0200 Subject: [PATCH 1/2] Minor fixes --- .../live-migration-introduction.md | 2 +- content/en/docs/monitoring/probes.md | 2 +- content/en/docs/scaling-vms/vm-images.md | 4 ++-- content/en/docs/scaling-vms/vm-pools.md | 16 ++++++++++++++++ content/en/docs/scaling-vms/vm-replica-sets.md | 11 ++++++++++- 5 files changed, 30 insertions(+), 5 deletions(-) diff --git a/content/en/docs/live-migration/live-migration-introduction.md b/content/en/docs/live-migration/live-migration-introduction.md index f3711d0..5adf938 100644 --- a/content/en/docs/live-migration/live-migration-introduction.md +++ b/content/en/docs/live-migration/live-migration-introduction.md @@ -39,7 +39,7 @@ Additionally, the live migration feature can be configured under `spec.configura {{% alert title="Limitations" color="warning" %}} * Virtual machines using PVC must have a `RWX` access mode to be live-migrated -* Additionally, pod network binding of the bridge interface is not allowed +* Additionally, pod network binding of the bridge interface is not allowed. * Volumes mounted as filesystems prevent virtual machines from being live migrated * Directly attached devices * Live migration requires ports `49152`, `49153` to be available in the `virt-launcher` pod; if these ports are explicitly specified in the masquarade interface, live migration will not work diff --git a/content/en/docs/monitoring/probes.md b/content/en/docs/monitoring/probes.md index 7b820d0..3ce1ac2 100644 --- a/content/en/docs/monitoring/probes.md +++ b/content/en/docs/monitoring/probes.md @@ -257,7 +257,7 @@ kubectl get vmi --namespace=$USER ```bash NAME AGE PHASE IP NODENAME READY -lab08-probe 2m32s Running 10.244.20.230 training-baremetal-0 False +{{% param "labsubfolderprefix" %}}{{% param "labfoldernumber" %}}-probe 2m32s Running 10.244.20.230 training-baremetal-0 False ``` diff --git a/content/en/docs/scaling-vms/vm-images.md b/content/en/docs/scaling-vms/vm-images.md index 6ab22e2..eaf1069 100644 --- a/content/en/docs/scaling-vms/vm-images.md +++ b/content/en/docs/scaling-vms/vm-images.md @@ -195,9 +195,9 @@ spec: return 200 '${response}'; } - } } - path: /etc/nginx/nginx.conf + } + path: /etc/nginx/nginx.conf - type: "text/x-shellscript" content: | #!/bin/sh diff --git a/content/en/docs/scaling-vms/vm-pools.md b/content/en/docs/scaling-vms/vm-pools.md index d668ce1..2a58e96 100644 --- a/content/en/docs/scaling-vms/vm-pools.md +++ b/content/en/docs/scaling-vms/vm-pools.md @@ -329,6 +329,14 @@ As the VirtualMachinePool implements the Kubernetes standard `scale` sub-command kubectl scale vmpool {{% param "labsubfolderprefix" %}}{{% param "labfoldernumber" %}}-webserver --replicas 1 --namespace=$USER ``` +{{% alert title="Note" color="info" %}} +Scaling is currently not possible with regular user permissions. You can change the replica count by editing the vmpool. + +```shell +kubectl edit vmpool {{% param "labsubfolderprefix" %}}{{% param "labfoldernumber" %}}-webserver --namespace=$USER +``` +{{% /alert %}} + ## Horizontal pod autoscaler @@ -360,4 +368,12 @@ Scale down the VM pool with: kubectl scale vmpool {{% param "labsubfolderprefix" %}}{{% param "labfoldernumber" %}}-webserver --replicas 0 --namespace=$USER ``` +{{% alert title="Note" color="info" %}} +Scaling is currently not possible with regular user permissions. You can change the replica count by editing the vmpool. + +```shell +kubectl edit vmpool {{% param "labsubfolderprefix" %}}{{% param "labfoldernumber" %}}-webserver --namespace=$USER +``` +{{% /alert %}} + [^1]: [Horizontal pod autoscaling](https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/) diff --git a/content/en/docs/scaling-vms/vm-replica-sets.md b/content/en/docs/scaling-vms/vm-replica-sets.md index a3a39e9..8c9c3c0 100644 --- a/content/en/docs/scaling-vms/vm-replica-sets.md +++ b/content/en/docs/scaling-vms/vm-replica-sets.md @@ -253,7 +253,7 @@ NAME AGE PHASE IP NODENAME You can access the console using the name of the VMI with `virtctl`: ```bash -virtctl console lab06-cirros-replicasetnc5p5 --namespace=$USER +virtctl console {{% param "labsubfolderprefix" %}}{{% param "labfoldernumber" %}}-cirros-replicasetnc5p5 --namespace=$USER ``` @@ -265,6 +265,15 @@ As the VirtualMachineInstanceReplicaSet implements the Kubernetes standard `scal kubectl scale vmirs {{% param "labsubfolderprefix" %}}{{% param "labfoldernumber" %}}-cirros-replicaset --replicas 1 --namespace=$USER ``` +{{% alert title="Note" color="info" %}} +Scaling is currently not possible with regular user permissions. You can change the replica count by editing the +VirtualMachineInstanceReplicaSet. + +```shell +kubectl edit vmirs {{% param "labsubfolderprefix" %}}{{% param "labfoldernumber" %}}-cirros-replicaset --namespace=$USER +``` +{{% /alert %}} + ## Horizontal pod autoscaler From 44988b8f021effa5502546b944a5b682cad8f80e Mon Sep 17 00:00:00 2001 From: christofluethi Date: Tue, 15 Oct 2024 14:43:39 +0200 Subject: [PATCH 2/2] linter --- content/en/docs/live-migration/live-migration-introduction.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/live-migration/live-migration-introduction.md b/content/en/docs/live-migration/live-migration-introduction.md index 5adf938..18026b2 100644 --- a/content/en/docs/live-migration/live-migration-introduction.md +++ b/content/en/docs/live-migration/live-migration-introduction.md @@ -39,7 +39,7 @@ Additionally, the live migration feature can be configured under `spec.configura {{% alert title="Limitations" color="warning" %}} * Virtual machines using PVC must have a `RWX` access mode to be live-migrated -* Additionally, pod network binding of the bridge interface is not allowed. +* Additionally, pod network binding of the bridge interface is not allowed. * Volumes mounted as filesystems prevent virtual machines from being live migrated * Directly attached devices * Live migration requires ports `49152`, `49153` to be available in the `virt-launcher` pod; if these ports are explicitly specified in the masquarade interface, live migration will not work