You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ro...@apache.org on 2021/10/12 12:59:59 UTC

[cloudstack-documentation] branch main updated: Add details for CoreOS replacement with Debian (SystemVM template) + Cluster Autoscaler (#168)

This is an automated email from the ASF dual-hosted git repository.

rohit pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudstack-documentation.git


The following commit(s) were added to refs/heads/main by this push:
     new 0f339c3  Add details for CoreOS replacement with Debian (SystemVM template) + Cluster Autoscaler (#168)
0f339c3 is described below

commit 0f339c3c4355ce84ac809474afd9de8f62bb5667
Author: Pearl Dsilva <pe...@gmail.com>
AuthorDate: Tue Oct 12 18:29:52 2021 +0530

    Add details for CoreOS replacement with Debian (SystemVM template) + Cluster Autoscaler (#168)
    
    * Add details for CoreOS replacement with Debian (SystemVM template)
    
    * Add note on systemvm upgrade changes
    
    * Add k8s supported version details
    
    * Update create cks cluster form
    
    Co-authored-by: Pearl Dsilva <pe...@shapeblue.com>
---
 source/_static/images/cks-create-cluster-form.png  | Bin 44622 -> 66184 bytes
 .../installguide/management-server/_systemvm.rst   |   3 +
 source/plugins/cloudstack-kubernetes-service.rst   |  75 ++++++++-------------
 source/upgrading/index.rst                         |   6 ++
 source/upgrading/upgrade/_sysvm_templates.rst      |   6 +-
 5 files changed, 43 insertions(+), 47 deletions(-)

diff --git a/source/_static/images/cks-create-cluster-form.png b/source/_static/images/cks-create-cluster-form.png
index 84ca28a..ab1102c 100644
Binary files a/source/_static/images/cks-create-cluster-form.png and b/source/_static/images/cks-create-cluster-form.png differ
diff --git a/source/installguide/management-server/_systemvm.rst b/source/installguide/management-server/_systemvm.rst
index 825beaf..0393768 100644
--- a/source/installguide/management-server/_systemvm.rst
+++ b/source/installguide/management-server/_systemvm.rst
@@ -16,6 +16,9 @@
 Prepare the System VM Template
 ------------------------------
 
+From Apache CloudStack v4.16 onwards, upgrade path handles systemVM template registration, if not done prior to initiating upgrade.
+One may choose, to also omit the systemVM template seeding step during fresh installation of CloudStack, as support has been added to 
+initiate systemVM template registration for all hypervisors present in the zone when the first secondary storage pool is added.
 Secondary storage must be seeded with a template that is used for
 CloudStack system VMs.
 
diff --git a/source/plugins/cloudstack-kubernetes-service.rst b/source/plugins/cloudstack-kubernetes-service.rst
index ac26bd8..ad76c6d 100644
--- a/source/plugins/cloudstack-kubernetes-service.rst
+++ b/source/plugins/cloudstack-kubernetes-service.rst
@@ -15,13 +15,13 @@ CloudStack Kubernetes Service
 
 The Kubernetes Service plugin adds Kubernetes integration to CloudStack. The plugin is disabled by default and an admin can enable it using a Global Setting. It enables users to run containerized services using Kubernetes clusters.
 
-Kubernetes Service plugin uses a CoreOS based template for node VMs for the Kubernetes cluster. CoreOS has been used as it provides docker installation and networking rules needed for Kubernetes by default. In future, different guest OSes might be used. For installation of Kubernetes binaries on cluster nodes, a binaries ISO is used for each Kubernetes version to be made available via CloudStack. This allows faster, offline installation of Kubernetes binaries and docker images along with [...]
+With CoreOS having reached EOL, from 4.16 the Kubernetes Service Plugin will use the existing SystemVM template for deploying kubernetes clusters. For installation of Kubernetes binaries on the cluster nodes, a binaries ISO is used for each Kubernetes version to be made available via CloudStack. This allows faster, offline installation of Kubernetes binaries and docker images along with support for adding multiple versions of Kubernetes for upgrades and running different clusters.
 
 For deployment and setup of Kubernetes on cluster nodes, the plugin uses the Kubernetes tool, 'kubeadm'. kubeadm is the command-line tool for easily provisioning a secure Kubernetes cluster on top of physical or cloud servers or virtual machines. Under the hood, control node(s) of the cluster starts a Kubernetes cluster using kubeadm init command with a custom token, and worker nodes join this Kubernetes cluster using kubeadm join command with the same token. More about kubeadm here: htt [...]
 
 To access the Kubernetes dashboard securely, the plugin provides access to kubeconfig file data which uses the Kubernetes tool kubectl to run a local proxy and thereby access the dashboard. More about kubectl here: https://kubernetes.io/docs/reference/kubectl/overview/
 
-The service allows creation of Kubernetes clusters using the UI or API. Both UI and API provide the ability to list, delete, scale upgrade, stop and start these clusters.
+The service allows creation of Kubernetes clusters using the UI or API. Both UI and API provide the ability to list, delete, scale, upgrade, stop and start these clusters.
 
 Enabling the Kubernetes Service
 --------------------------------
@@ -38,9 +38,10 @@ Restart the Management Server to enable the set configuration values.
 
    # service cloudstack-management restart
 
-   # service cloudstack-usage restart
+Once the Kubernetes service is running the new APIs will become accessible and the UI will show the Kubernetes tab under the Compute section.
 
-Once the Kubernetes service is running the new APIs will become accessible and the UI will start show a Kubernetes Service tab.
+**NOTE:**
+From ACS 4.16 onwards, if a CKS cluster is to be deployed on VMware, the 'vmware.create.full.clone' configuration parameter will need to be set to true, so as to allow resizing of root volumes of the cluster nodes.
 
 Kubernetes Supported Versions
 ------------------------------
@@ -66,6 +67,9 @@ Eg:
 
    # ./create-kubernetes-binaries-iso.sh ./ 1.12.5 0.7.1 1.12.0 "https://cloud.weave.works/k8s/net?k8s-version=1.12.5" https://raw.githubusercontent.com/kubernetes/dashboard/v2.0.0-beta1/aio/deploy/recommended.yaml
 
+**NOTE:**
+From ACS 4.16 onwards, Kubernetes versions >= 1.20.x are only supported (https://endoflife.date/kubernetes).
+
 Working with Kubernetes supported version
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
@@ -128,29 +132,14 @@ Deleting supported Kubernetes version
 deleteKubernetesSupportedVersion API has been provided for admins to delete an existing supported version if it is not used by any Kubernetes cluster in the service. id parameter of the API can be used to pass Kubernetes version to be deleted.
 
 .. note::
-   addKubernetesSupportedVersion, updatedKubernetesSupportedVersion and deleteKubernetesSupportedVersion APIs are available to admin only
+   addKubernetesSupportedVersion, updateKubernetesSupportedVersion and deleteKubernetesSupportedVersion APIs are available to root admins only
 
 Kubernetes clusters
 --------------------
 
-The Kubernetes service provides the functionality of running and managing Kubernetes clusters. Highly available, scalable Kubernetes clusters can be created to run containerized deployments without having to set up Kubernetes on each container node manually. The service will automatically provision the desired number of virtual machines as per cluster size using the binaries from the given Kubernetes version. Additionally, the service provides the functionality to upgrade and scale clust [...]
-
-This provides functionality to create Kubernetes clusters for Shared, Isolated and VPC networks in CloudStack, but such networks must be accessible to the CloudStack management server for provisioning virtual machines on the cluster. Template and default network offering must be set Global Settings for the service to create Kubernetes clusters.
-
-.. note::
-   In case of isolated and VPC networks, if egress rules and ACLs don't allow traffic the setup of the Kubernetes cluster and deployment of pods may fail due to inability of fetching the images from public network.
-
-The following Global Settings value must be set to the name of Template to be used for deploying node virtual machines for the respective hypervisor while creating a Kubernetes cluster:
-
-- **cloud.kubernetes.cluster.template.name.hyperv** (Name of the template to be used for creating Kubernetes cluster nodes on HyperV)
-- **cloud.kubernetes.cluster.template.name.kvm** (Name of the template to be used for creating Kubernetes cluster nodes on KVM)
-- **cloud.kubernetes.cluster.template.name.vmware** (Name of the template to be used for creating Kubernetes cluster nodes on VMware)
-- **cloud.kubernetes.cluster.template.name.xenserver** (Name of the template to be used for creating Kubernetes cluster nodes on Xenserver)
+The Kubernetes service provides the functionality of running and managing Kubernetes clusters. Highly available, scalable Kubernetes clusters can be created to run containerized deployments without having to set up Kubernetes on each container node manually. The service will automatically provision the desired number of virtual machines as per cluster size using the binaries corresponding to the provided Kubernetes version. Additionally, the service provides the functionality to upgrade  [...]
 
-Using a CoreOS template is required - you can find CoreOS templates for CloudStack here, http://dl.openvm.eu/cloudstack/coreos/x86_64/
-
-.. note::
-   For VMware, CoreOS template must be registered with root disk controller as **pvscsi** and NIC adapter type as **Vmxnet3**.
+This provides functionality to create Kubernetes clusters for Shared, Isolated and VPC networks in CloudStack, but such networks must be accessible to the CloudStack management server for provisioning virtual machines on the cluster. The default network offering must be set in the Global Settings for the service to create Kubernetes clusters.
 
 The following Global Setting value must be set to the name of Network Offering to be used for creating a new network when no network has been selected while creating a Kubernetes cluster:
 
@@ -172,7 +161,7 @@ For Kubernetes cluster management, the service provides create, stop, start, sca
 Creating a new Kubernetes cluster
 ##################################
 
-New Kubernetes clusters can be create using API or from UI. User will be provided with a Add Kubernetes Cluster form as shown below,
+New Kubernetes clusters can be created using the API or via the UI. User will be provided with an 'Add Kubernetes Cluster' form as shown below,
 
 |cks-create-cluster-form.png|
 
@@ -227,13 +216,13 @@ For example:
      }
    }
 
-On successful creation, the new cluster will be automatically started and will show up in Running state. If creation of the new cluster fails it can be in following states:
+On successful creation, the new cluster will automatically be started and will show up in Running state. If creation of the new cluster fails it can be in following states:
 - Alert – When node virtual machines were successfully provisioned, and cluster API server is accessible but further provisioning steps could not be completed.
-- Error – When the service has unable to provision node virtual machines for the cluster or cluster API server is not accessible.
+- Error – When the service was unable to provision the node virtual machines for the cluster or if the cluster API server is not accessible.
 
 .. note::
-   - For CoreOS, a minimum of 2 cores of CPU and 2GB of RAM is needed for deployment. Therefore, the serviceofferingid parameter of createKuberntesCluster API must be provided with the ID of such compute offerings that conform to these requirements.
-   - Private docker registry related parameters of createKubentesCluster API (dockerregistryusername, dockerregistryusername, dockerregistryurl, dockerregistryemail) provides experimental functionality. To use them during cluster deployment value for global setting, cloud.kubernetes.cluster.experimental.features.enabled, must be set as true by admin beforehand.
+   - A minimum of 2 cores of CPU and 2GB of RAM is needed for deployment. Therefore, the serviceofferingid parameter of createKubernetesCluster API must be provided with the ID of such compute offerings that conform to these requirements.
+   - Private docker registry related parameters of createKubenetesCluster API (dockerregistryusername, dockerregistryusername, dockerregistryurl, dockerregistryemail) provides experimental functionality. To use them during cluster deployment value for global setting, cloud.kubernetes.cluster.experimental.features.enabled, must be set to true by admin beforehand.
 
 Listing Kubernetes clusters
 ############################
@@ -245,18 +234,14 @@ listKubernetesCluster API can be used to list existing Kubernetes clusters. id p
 Stopping Kubernetes cluster
 ############################
 
-A running Kubernetes cluster can be stopped using both the API and |cks-stop-action.png| action icon from UI. action icon is shown for a running cluster in the UI.
-
-stopKubernetesCluster can be used to stop a running cluster. It takes id of the cluster as the input parameter.
+A running Kubernetes cluster can be stopped using either the stopKubernetesCluster API which takes id of the cluster as an input parameter or |cks-stop-action.png| action icon from UI. action icon is shown for a running cluster in the UI.
 
 Starting a stopped Kubernetes cluster
 ######################################
 
-A stopped Kubernetes cluster can be started using both API and the |cks-start-action.png| action icon from UI. action icon is shown for a stopped cluster in the UI.
+A stopped Kubernetes cluster can be started using either the startKubernetesCluster API which takes id of the cluster as the input parameter or the |cks-start-action.png| action icon from UI. action icon is shown for a stopped cluster in the UI.
 
-startKubernetesCluster can be used to start a stopped cluster. It takes id of the cluster as the input parameter.
-
-When the service fails to start a stopped cluster, the cluster will show in Alert state else it will show in Running state.
+When the service fails to start a stopped cluster, the cluster will show in Alert state else it will show up as Running.
 
 Scaling Kubernetes cluster
 ###########################
@@ -265,15 +250,15 @@ A running or stopped Kubernetes cluster can be scaled using both API and UI. |ck
 
 |cks-scale-cluster-form.png|
 
-scaleKubernetesCluster API can be used to scale a running (or stopped cluster) for a desired cluster size and service offering. It takes following parameters as input,
+scaleKubernetesCluster API can be used to scale a running (or stopped cluster) to a desired cluster size and service offering. It takes the following parameters as input:
 
 - **id** (the ID of the Kubernetes cluster to be scaled; Required)
 - **serviceofferingid** (the ID of the new service offering for the virtual machines in the cluster)
 - **size** (number of Kubernetes cluster worker nodes)
 
-Only running Kubernetes clusters can be scaled for size. When the service fails to scale the cluster, the cluster will show in Alert state else if the scaling is successfull cluster will show up in Running state.
+Only running Kubernetes clusters can be scaled in size. When the service fails to scale the cluster, the cluster will show in Alert state else if the scaling is successfull cluster will show up in Running state.
 
-Note: Only upscaling is supported while scaling clusters for service offering.
+Note: Only up scaling is supported while scaling clusters for service offering.
 
 Upgrading Kubernetes cluster
 #############################
@@ -282,30 +267,28 @@ A running Kubernetes cluster can be upgraded using both API and UI. |cks-upgrade
 
 |cks-upgrade-cluster-form.png|
 
-upgradeKubernetesCluster API can be used to upgrade a running cluster. It takes following parameters as input:
+upgradeKubernetesCluster API can be used to upgrade a running cluster. It takes the following parameters as input:
 
 - **id** (the ID of the Kubernetes cluster to be upgraded; Required)
 - **kubernetesversionid** (Kubernetes version with which cluster to be launched; Required)
 
-When the service fails to upgrade the cluster, the cluster will show in Alert state. If the upgrade has been successful cluster will show in Running state.
+When the service fails to upgrade the cluster, the cluster will show up in Alert state, else if successful, the cluster appears Running state.
 
 .. note:: Kubernetes can be upgraded from one MINOR version to the next MINOR version, or between PATCH versions of the same MINOR. That is, you cannot skip MINOR versions when you upgrade. For example, you can upgrade from 1.y to 1.y+1, but not from 1.y to 1.y+2. Therefore, service can upgrade running clusters in the similar manner only.
 
 Deleting Kubernetes cluster
 ############################
 
-Both UI and API can be used to delete a created Kubernetes cluster. |cks-delete-action.png| action icon will be available in UI to delete a cluster.
-
-deleteKubernetesCluster can be used to delete a cluster. It takes id of the cluster as the input parameter.
+A kubernetes cluster can be deleted using either the deleteKubernetesCluster API which takes cluster id as the input parameter or the |cks-delete-action.png| action icon from the UI.
 
-The Kubernetes service runs a background state scanner process which regularly checks for cluster health. For clusters in Alert state, this background process verifies their state and moves them to Running state if all node virtual machines for the cluster are running and API server for the cluster is accessible.
+The Kubernetes service runs a background state scanner process which regularly checks the cluster health. For clusters in Alert state, this background process verifies their state and moves them to Running state if all node virtual machines of the cluster are running and the API server for the cluster is accessible.
 
 Working with Kubernetes cluster
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 
 |cks-cluster-details-tab.png|
 
-Once a Kubernetes cluster is created successfully and it is running state, it can be accessed using kubectl tool using cluster’s kubeconfig file. The web dashboard can be accessed by running local proxy using kubectl. Deployments in the cluster can be done using kubectl or web dashboard. More about deployment in Kubernetes here: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
+Once a Kubernetes cluster is created successfully and is in Running state, it can be accessed using the kubectl tool using the cluster’s kubeconfig file. The web dashboard can be accessed by running a local proxy using kubectl. Deployments in the cluster can be done using kubectl or web dashboard. More about deployment in Kubernetes here: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/
 
 Accessing Kubernetes cluster
 #############################
@@ -331,7 +314,7 @@ The following command can be used, while passing the correct path to kubeconfig
 
    # kubectl --kubeconfig /custom/path/kube.config proxy
 
-Once the proxy is running user can open the following URL in the browser to open the dashboard,
+Once the proxy is running, users can open the following URL in the browser to access the dashboard,
 
 .. parsed-literal::
 
@@ -339,7 +322,7 @@ Once the proxy is running user can open the following URL in the browser to open
 
 |cks-cluster-dashboard.png|
 
-Token for dashboard login can be retrieved using following command
+Token for dashboard login can be retrieved using the following command:
 
 .. parsed-literal::
 
diff --git a/source/upgrading/index.rst b/source/upgrading/index.rst
index abff17c..9c4160c 100644
--- a/source/upgrading/index.rst
+++ b/source/upgrading/index.rst
@@ -28,6 +28,12 @@ Upgrading CloudStack
 This document contains the instructions for upgrading CloudStack from prior releases, to the current 
 release.  Please read through all sections carefully before starting.
 
+From ACS 4.16 onwards, seeding of system-VM template is optional, as this will be taken care of by either the upgrade process or
+in case of a fresh deployment, registration of the systemVM template(s) is handled during the addition of the first image store to a zone.
+The `cloudstack-management` package will now include the systemVM templates for KVM, XenServer and VMWare. In case templates aren't already registered
+either prior upgrade or during fresh installation, ACS will handle the template registration automatically, by mounting the secondary store onto the 
+management server, copying the respective templates to the store and then creating the `template.properties` file.
+
 .. note::
    For information on the API changes and issues fixed in this release, please see the Release Notes section of the documentation
 
diff --git a/source/upgrading/upgrade/_sysvm_templates.rst b/source/upgrading/upgrade/_sysvm_templates.rst
index 6503568..d23eef3 100644
--- a/source/upgrading/upgrade/_sysvm_templates.rst
+++ b/source/upgrading/upgrade/_sysvm_templates.rst
@@ -28,7 +28,11 @@ Update System-VM templates
 #. Click Register template.
    The Register template dialog box is displayed.
 
-#. In the Register template dialog box, specify the following values
+#. From ACS 4.16 onwards, CloudStack will support automatic registration of systemVM
+   templates, if not done prior initiating upgrade. However, the usual upgrade process 
+   continues to be supported. To register the system VM template do the following:
+
+   In the Register template dialog box, specify the following values
    (do not change these):
 
    .. cssclass:: table-striped table-bordered table-hover