Versions Compared

Key

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

...

Code Block
languagebash
themeDJango
linenumberstrue
reboot 

1.3 Set address

...

mappin

Set address mapping, and test the network

...

Code Block
languagebash
themeDJango
linenumberstrue
cat <<EOF>> /etc/hosts 
<YOUR IP>${YOUR IP} master 
<YOUR IP>${YOUR IP} worker1 
EOF 
ping master
ping worker1 

Execute screenshot:

1.4 Turn off firewall, selinux and swap

...

Code Block
languagebash
themeDJango
linenumberstrue
rm -rf /etc/yum.repos.d/* ;wget ftp://ftp.rhce.cc/k8s/* -P /etc/yum.repos.d/ ls /etc/yum.repos.d/ 

Execute screenshot

img15png img16png

1.6 Set iptables set iptables

...

Code Block
languagebash
themeDJango
linenumberstrue
 yum -y remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine docker-ce docker-ce-cli 

...

Execute screenshot

img17png

5 Initialize workers

The main content is to add Add worker nodes to the cluster

...

Code Block
languagebash
themeDJango
linenumberstrue
# master
kubectl get nodes


 Execute screenshot

img18png

6 install karmada

6.1 Install the Karmada kubectl plugin

...

https://karmada.io/docs/installation/

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


Installation worker cluster

...

Code Block
languagebash
themeDJango
linenumberstrue
## request
curl http://192.168.30.20:30960/health

##response
{"status": "UP"}

Execute screenshotImage Removed



Installation High-Level Overview

...