... | ... | @@ -51,7 +51,9 @@ sudo kubeadm init --cri-socket=/var/run/containerd/containerd.sock --pod-network |
|
|
mkdir -p $HOME/.kube
|
|
|
sudo cp -i /etc/kubernetes/admin.conf $HOME/.kube/config
|
|
|
sudo chown $(id -u):$(id -g) $HOME/.kube/config
|
|
|
kubectl apply -f https://docs.projectcalico.org/manifests/calico.yaml
|
|
|
kubectl apply -f "https://cloud.weave.works/k8s/net?k8s-version=$(kubectl version | base64 | tr -d '\n')"
|
|
|
# kubectl create -f https://projectcalico.docs.tigera.io/manifests/tigera-operator.yaml
|
|
|
# kubectl create -f https://projectcalico.docs.tigera.io/manifests/custom-resources.yaml
|
|
|
kubectl taint nodes --all node-role.kubernetes.io/master-
|
|
|
watch kubectl get node,pod -o wide --all-namespaces
|
|
|
```
|
... | ... | |