calico

hx_ky36發表於2024-08-20

tar -zxvf calico-release-v3.28.0.tgz

1.修改pod網路地址

vim /apps/k8s/release-v3.28.0/manifests/calico.yaml

2.映象

 cat calico.yaml | grep image:

cd /apps/k8s/release-v3.28.0/images/

nerdctl load -i calico-cni.tar 
nerdctl load -i calico-node.tar
nerdctl load -i calico-kube-controllers.tar

#執行安裝 在master上

cd /apps/k8s/release-v3.28.0/manifests/
kubectl apply -f calico.yaml

3.驗證

kubectl run nginx11 --image=harbor.hiuiu.com/basic_image/centos7_filebeat_nginx:2408.u sleep 10000
kubectl run nginx22 --image=harbor.hiuiu.com/basic_image/centos7_filebeat_nginx:2408.u sleep 10000
kubectl get pod -o wide

kubectl exec nginx11 -it bash
ping nginx22