-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CKS Enhancements docs #458
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
@@ -15,7 +15,10 @@ 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. | ||||||||||
|
||||||||||
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. | ||||||||||
With CoreOS having reached EOL, from 4.16 the Kubernetes Service Plugin will use the existing SystemVM Template by default 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. | ||||||||||
|
||||||||||
.. note:: | ||||||||||
Since version 4.21.0 users can choose different templates for different types of nodes (worker, control, etcd nodes) for deploying Kubernetes clusters. These templates must be previously registered selecting the 'For CKS' option. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Hi @DaanHoogland I see most of the suggested changes are splitting the single line into multiple lines. Is this a problem on having them as single lines? |
||||||||||
|
||||||||||
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 Instances. 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: https://kubernetes.io/docs/reference/setup-tools/kubeadm/kubeadm/. Weave Net CNI provider plugin is used for cluster networking. More about Weave Net provide plugin here: https://www.weave.works/docs/net/latest/kubernetes/kube-addon/. | ||||||||||
|
||||||||||
|
@@ -92,6 +95,9 @@ Once the ISO has been built for a desired Kubernetes version, it can be added by | |||||||||
|
||||||||||
|cks-add-version-form.png| | ||||||||||
|
||||||||||
.. note:: | ||||||||||
Since 4.21.0 it is possible to deploy separate dedicated etcd nodes. This requires the Kubernetes ISO contains the etcd binaries. | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
|
||||||||||
addKubernetesSupportedVersion API can be used by an admin to add a new supported version for the service. It takes following input parameters: | ||||||||||
|
||||||||||
- **name** (the name of the Kubernetes supported version) · semanticversion (the semantic version of the Kubernetes release in MAJOR.MINOR.PATCH format. More about semantic versioning here: https://semver.org/ Required) | ||||||||||
|
@@ -194,6 +200,13 @@ New Kubernetes clusters can be created using the API or via the UI. User will be | |||||||||
|
||||||||||
|cks-create-cluster-form.png| | ||||||||||
|
||||||||||
Since 4.21.0, users will be provided with an additional section displayed when toggling the option: 'Show Advanced Settings'. On this section, users can select templates and service offerings for: | ||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
- Worker nodes | ||||||||||
- Control nodes | ||||||||||
- Etcd nodes (if one or more are selected, no etcd nodes are selected by default) | ||||||||||
|
||||||||||
|cks-create-cluster-additional-settings.png| | ||||||||||
|
||||||||||
createKubernetesCluster API can be used to create new Kubernetes cluster. It takes following parameters as input, | ||||||||||
|
||||||||||
- **name** (name for the Kubernetes cluster; Required) | ||||||||||
|
@@ -215,6 +228,9 @@ createKubernetesCluster API can be used to create new Kubernetes cluster. It tak | |||||||||
- **dockerregistrypassword** (password for the docker image private registry; Experimental) | ||||||||||
- **dockerregistryurl** (URL for the docker image private registry; Experimental) | ||||||||||
- **dockerregistryemail** (email of the docker image private registry user; Experimental) | ||||||||||
- **nodeofferings**: an optional map parameter to set the service offerings for worker, control or etcd nodes. If this parameter is not set, then every VM in the cluster will be deployed using the default service offering set on the serviceofferingid parameter. | ||||||||||
- **etcdnodes**: an optional integer parameter to specify the number etcd nodes in the cluster, the default value is 0. In case the number is greater than 0, etcd nodes are separate from master nodes and are provisioned accordingly. | ||||||||||
- **nodetemplates**: an optional map parameter to set the template to be used by worker, control or etcd nodes. If this parameter is not set, then every VM in the cluster will be deployed using the System VM template. | ||||||||||
|
||||||||||
For example: | ||||||||||
|
||||||||||
|
@@ -417,6 +433,8 @@ To remove an Instance from an ExternalManaged Kubernetes cluster: | |||||||||
:alt: Kubernetes clusters list. | ||||||||||
.. |cks-create-cluster-form.png| image:: /_static/images/cks-create-cluster-form.png | ||||||||||
:alt: Create Kubernetes Cluster form. | ||||||||||
.. |cks-create-cluster-additional-settings.png| image:: /_static/images/cks-create-cluster-additional-settings.png | ||||||||||
:alt: Create Kubernetes Cluster form with Advanced Settings. | ||||||||||
.. |cks-delete-action.png| image:: /_static/images/cks-delete-action.png | ||||||||||
:alt: Delete action icon. | ||||||||||
.. |cks-kube-config-action.png| image:: /_static/images/cks-kube-config-action.png | ||||||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.