...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
reboot |
1.3 Set address
...
mappin
Set address mapping, and test the network
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
rm -rf /etc/yum.repos.d/* ;wget ftp://ftp.rhce.cc/k8s/* -P /etc/yum.repos.d/ ls /etc/yum.repos.d/ |
Execute screenshot
1.6 Set iptables set iptables
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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
5 Initialize workers
The main content is to add Add worker nodes to the cluster
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
# master kubectl get nodes |
Execute screenshot
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 | ||||||
---|---|---|---|---|---|---|
| ||||||
## request curl http://192.168.30.20:30960/health ##response {"status": "UP"} |
Execute screenshot
Installation High-Level Overview
...