...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
cat <<EOF>> /etc/hosts ${YOUR IP} master ${YOUR IP} worker1 EOF ping master ping worker1 |
Execute screenshot:screenshot
1.4 Turn off firewall, selinux and swap
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
systemctl stop firewalld systemctl disable firewalld setenforce 0 sed -i "s/^SELINUX=enforcing/SELINUX=disabled/g" /etc/selinux/config swapoff -a sed -i 's/.*swap.*/#&/' /etc/fstab |
Execute screenshot:screenshot
1.5 Download the new yum source
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
yum -y install docker-ce |
Execute screenshot:screenshot
2.3 Set docker to boot and confirm docker status
...
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
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
Check
...
all
...
your
...
pod
...
is
...
READY
Execute command
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
kubectl get po -A |
Execute
...
screenshot
reference
https://lazytoki.cn/index.php/archives/4/
...