Skip to content

Commit 075ad7b

Browse files
committed
added calico cni docs
1 parent 6e2a2b7 commit 075ad7b

File tree

1 file changed

+44
-4
lines changed

1 file changed

+44
-4
lines changed

source/plugins/cloudstack-kubernetes-service.rst

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@ CloudStack Kubernetes Service
1515

1616
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.
1717

18-
With CoreOS having reached EOL, from 4.16 on the Kubernetes Service Plugin will use
19-
the existing SystemVM Template by default for deploying kubernetes clusters. For
18+
The Kubernetes Service Plugin will use the existing SystemVM Template by default for deploying kubernetes clusters. For
2019
installation of Kubernetes binaries on the cluster nodes, a binaries ISO is used for each
2120
Kubernetes version to be made available via CloudStack. This allows faster, offline
2221
installation of Kubernetes binaries and docker images along with support for adding
@@ -26,7 +25,11 @@ multiple versions of Kubernetes for upgrades and running different clusters.
2625
From version 4.21.0, users can choose different templates and service offerings for different types of nodes (worker, control, etcd nodes) for deploying Kubernetes clusters. The templates must be previously registered selecting the 'For CKS' option.
2726
See :ref:`flexible-kubernetes-clusters`.
2827

29-
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/.
28+
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/.
29+
30+
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/.
31+
32+
Calico CNI provider plugin is also supported from ACS 4.21 onwards. More about Calico CNI plugin here: https://docs.projectcalico.org/getting-started/kubernetes/.
3033

3134
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/
3235

@@ -76,6 +79,7 @@ Eg: To generate the latest kubernetes iso
7679
1.3.0, CNI version, see https://github.com/containernetworking/plugins/releases
7780
1.27.0, cri-tools version, see https://github.com/kubernetes-sigs/cri-tools/releases
7881
1.11, weave addon for kubernetes, see https://github.com/weaveworks/weave/tree/master/prog/weave-kube
82+
3.30.0, calico addon for kubernetes, see https://raw.githubusercontent.com/projectcalico/calico/v3.30.0/manifests/calico.yaml
7983
2.7.0, kubernetes dashboard version, see https://github.com/kubernetes/dashboard/release
8084
8185
Usage:
@@ -84,12 +88,25 @@ Usage:
8488
8589
# ./create-kubernetes-binaries-iso.sh OUTPUT_PATH KUBERNETES_VERSION CNI_VERSION CRICTL_VERSION WEAVENET_NETWORK_YAML_CONFIG DASHBOARD_YAML_CONFIG [OPTIONAL_OUTPUT_FILENAME] [OPTIONAL_ETCD_VERSION]
8690
87-
Eg:
91+
Eg: To generate the kubernetes iso with weave cni plugin
8892

8993
.. parsed-literal::
9094
9195
# ./create-kubernetes-binaries-iso.sh ./ 1.27.2 1.3.0 1.27.0 https://raw.githubusercontent.com/weaveworks/weave/master/prog/weave-kube/weave-daemonset-k8s-1.11.yaml https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml setup-v1.27.2
9296
97+
Eg: To generate the kubernetes iso with calico cni plugin
98+
99+
.. parsed-literal::
100+
101+
# ./create-kubernetes-binaries-iso.sh ./ 1.33.1 1.7.1 1.33.0 https://raw.githubusercontent.com/projectcalico/calico/v3.30.0/manifests/calico.yaml https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml setup-v1.33.1-calico
102+
103+
Eg: To generate the kubernetes iso with calico cni plugin for ARM64 architecture add aarch64 as the last parameter.
104+
105+
.. parsed-literal::
106+
107+
# ./create-kubernetes-binaries-iso.sh ./ 1.33.1 1.7.1 1.33.0 https://raw.githubusercontent.com/projectcalico/calico/v3.30.0/manifests/calico.yaml https://raw.githubusercontent.com/kubernetes/dashboard/v2.7.0/aio/deploy/recommended.yaml aarch64 setup-v1.33.1-calico-arm64
108+
109+
93110
**NOTE:**
94111
From ACS 4.16 onwards, Kubernetes versions >= 1.20.x are only supported (https://endoflife.date/kubernetes).
95112

@@ -765,6 +782,29 @@ For verification of the applied CNI Configuration, the following commands can be
765782
766783
Events: <none>
767784
785+
There could be Calico routing edge case encountered in some environments. By default, Calico uses the 192.168.0.0/16 network for its pod IP pool when you install it with the standard manifests. To avoid potential routing conflicts with existing networks in your infrastructure, it's advisable to customize the Calico IP pool to use a different subnet that doesn't overlap with your current network setup.
786+
787+
kubectl get ippool.crd.projectcalico.org -o yaml
788+
789+
.. code-block:: bash
790+
apiVersion: crd.projectcalico.org/v1
791+
kind: IPPool
792+
metadata:
793+
name: default-ipv4-ippool
794+
spec:
795+
cidr: 192.168.0.0/16
796+
ipipMode: Always
797+
natOutgoing: true
798+
disabled: false
799+
800+
You can edit the IP pool to change the CIDR to a different subnet that fits your network architecture better. For example, you might choose to use 10.0.0.0/16.
801+
802+
kubectl edit ippool default-ipv4-ippool
803+
804+
and redeploy the pods
805+
806+
kubectl delete pod --all -A
807+
768808
769809
.. |cks-add-version-form.png| image:: /_static/images/cks-add-version-form.png
770810
:alt: Add Kubernetes Supported Version form.

0 commit comments

Comments
 (0)