kubernets网络组件calico或kuve-ovn初始化
文档说明: 只是记录关键点
k8s 版本 > 1.19
实验环境: linux debian 11
任选一个就行(calico 和kube-ovn 任选一个就行)
calico
curl -Lo calico.yaml https://docs.projectcalico.org/manifests/calico.yaml
kubectl create -f calico.yaml
kube-ovn
curl -Lo kube-ovn-install.sh https://raw.githubusercontent.com/kubeovn/kube-ovn/release-1.10/dist/images/install.sh
bash kube-ovn-install.sh
calicoctl 配置
vi /etc/calico/calicoctl.cfg
apiVersion: projectcalico.org/v3
kind: CalicoAPIConfig
metadata:
spec:
datastoreType: "kubernetes"
kubeconfig: "/root/.kube/config"