-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
体验 Kubeadm #309
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: multipass 1.9.1+mac, ubuntu 20.04, kubeadm 1.24.2, macOS 12.3.1
multipass
multipass launch --name primary --cpus 2 --mem 2000M 20.04
kubeadm
部署Kubernetes的Master节点
multipass launch --name primary --cpus 2 --mem 2000M 20.04
sudo apt-get install docker.io
kubeadm init
kubeadm join 192.168.64.7:6443 --token sbi9z4.ls0jkyknux490hyp \ --discovery-token-ca-cert-hash sha256:f9ae8a51a2c8a1f7c9bff731cdf1ba97fd945fdd0ea28db532f2e338d6c21338
kubectl apply -f https://raw.githubusercontent.com/coreos/flannel/master/Documentation/kube-flannel.yml
kubectl get pods -n kube-system
检查Pod运行状态kubectl describe node primary
检查运行状态服务是否ready部署Kubernetes的Worker节点
multipass launch --name worker1 --cpus 2 --mem 2000M 20.04
sudo apt-get install docker.io
kubeadm join 192.168.64.7:6443 --token sbi9z4.ls0jkyknux490hyp \ --discovery-token-ca-cert-hash sha256:f9ae8a51a2c8a1f7c9bff731cdf1ba97fd945fdd0ea28db532f2e338d6c21338
然后在primary上检查,
The text was updated successfully, but these errors were encountered: