k8s安装calico-v3.29.3

calico官网

在集群上安装操作员

kubectl create -f https://raw.githubusercontent.com/projectcalico/calico/v3.29.3/manifests/tigera-operator.yaml

下载配置 Calico 所需的自定义资源。

curl https://raw.githubusercontent.com/projectcalico/calico/v3.29.3/manifests/custom-resources.yaml -O

编辑资源

vim custom-resources.yaml

将 cidr: 10.244.0.0/16 改为自己的 Pod 网段

创建资源

kubectl create -f custom-resources.yaml
root@k8s-master:~# kubectl get pods -A
NAMESPACE          NAME                                      READY   STATUS    RESTARTS         AGE
calico-apiserver   calico-apiserver-f88446f86-g5ffw          1/1     Running   1 (3h51m ago)    2d21h
calico-apiserver   calico-apiserver-f88446f86-hwkgx          1/1     Running   1 (3h35m ago)    2d23h
calico-system      calico-kube-controllers-584b9b987-5qwd9   1/1     Running   4 (7m16s ago)    2d21h
calico-system      calico-node-7gjhq                         1/1     Running   6 (3h51m ago)    3d5h
calico-system      calico-node-dd4gk                         1/1     Running   8 (7m13s ago)    3d4h
calico-system      calico-node-tbmxn                         1/1     Running   1 (3h51m ago)   3d5h
calico-system      calico-typha-5db74bc797-8z7xd             1/1     Running   1 (3h51m ago)   3d5h
calico-system      calico-typha-5db74bc797-fqbnf             1/1     Running   8 (3h36m ago)    3d5h
calico-system      csi-node-driver-2wlvr                     2/2     Running   2 (3h35m ago)    3d5h
calico-system      csi-node-driver-qg6dt                     2/2     Running   2 (3h51m ago)    3d5h
calico-system      csi-node-driver-qq676                     2/2     Running   4 (3h51m ago)    3d5h
tigera-operator    tigera-operator-ccfc44587-j2bh5           1/1     Running   0 (35m ago)     3d5h

 

posted @ 2025-04-27 14:47  Maniana  阅读(394)  评论(0)    收藏  举报