Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Here select cilium as the network plugin

Confirm that your current default version of the kernel is above 4.9

Check the current kernel version and boot sequence

Execute command

Code Block
languagebash
themeDJango
linenumberstrue
# master 
curlawk -F\' '$1=="menuentry " {print i++ " : " $2}' /boot/grub2/grub.cfg


Cilium install

Execute command

Code Block
languagebash
themeDJango
linenumberstrue
# master 
curl -L --remote-name-all https://github.com/cilium/cilium-cliL --remote-name-all https://github.com/cilium/cilium-cli/releases/latest/download/cilium-linux-amd64.tar.gz
tar -zxvf cilium-linux-amd64.tar.gz
mv cilium /usr/local/bin/
cilium version
cilium install
kubectl get po -A

...

We can see that the all the pod is ready

If an error occur, you can use cilium uninstall to reset.

5 Initialize workers

The main content is to add worker nodes to the cluster

...

Install karamda via kubectl. China mainland registry mirror can be specified by using kube-image-mirror-countryby using kube-image-mirror-country

Execute command

Code Block
languagebash
themeDJango
linenumberstrue
kubectl karmada init --kube-image-registry=registry.cn-hangzhou.aliyuncs.com/google_containers

Due to network problems, you may need to retry a few times

Execute screenshot
Image Added
Image Added
Check all your pod is READY

Execute command

Code Block
languagebash
themeDJango
linenumberstrue
kubectl get po -A

Execute screenshot

Image Added



7 Propagate a deployment by Karmada


Before propagating a deployment, make sure the worker cluster is already working properly

In the following steps, we are going to propagate a deployment by Karmada. We use the installation of nginx as an example


7.1 Join a worker/member cluster to karmada control plane

Here we add the working node cluster through push mode


Execute command


Code Block
languagebash
themeDJango
linenumberstrue
kubectl karmada join init --kube-image-registry=registry.cn-hangzhou.aliyuncs.com/google_containers

Due to network problems, you may need to retry a few times

Execute screenshot
Image Removed
Image Removed
Check all your pod is READY

...

worker-cluster --cluster-kubeconfig=prod --cluster-context=prod




7.2 Create nginx deployment in Karmada.

Code Block
languagebash
themeDJango
linenumberstrue
kubectl get po -A



7.2 Create nginx deployment in Karmada.

Code Block
languagebash
themeDJango
linenumberstrue
kubectl get po -A


7.2 Create nginx deployment in Karmada.


Code Block
languagebash
themeDJango
linenumberstrue
kubectl get po -A

Execute screenshot

...





Reference

https://lazytoki.cn/index.php/archives/4/

...

https://docs.cilium.io/en/stable/gettingstarted/k8s-install-kubeadm/

https://karmada.io/docs/get-started/nginx-example


Installation worker cluster

...