Deploy K8S Clusters¶
It is recommended to use the following options to deploy your k8s clusters.
Option 1: Deploy k8s cluster via kind¶
-
Download the
kind
binary package. -
Use
kind
to create k8s clusters.
Info
DaoCloud has set up a dedicated image for domestic users to download. Links with https://files.m.daocloud.io/
indicate that image acceleration has been provided.
Option 2: Deploy k8s clusters via Kubeadm¶
-
Download the kubeadm binary package.
-
Pull the k8s image.
-
Run
kubeadm init
to initialize your first k8s node, and runkubeadm join
to join other nodes. For detailed flags, see kubeadm documentation. -
Install CNIs. If you choose to use Calico, see Calico documentation. If you choose other CNIs, see corresponding documentation.
-
Deploy StorageClass while you can select local-path. Refer to local-path documentation.
kubectl apply -f https://raw.githubusercontent.com/rancher/local-path-provisioner/v0.0.22/deploy/local-path-storage.yaml
Set local-path to the default StorageClass.