Kube-OVN 提供了一键安装脚本,可以帮助你快速安装一个高可用,生产就绪的 Kube-OVN 容器网络。

    1. 下载安装脚本
    1. wget https://raw.githubusercontent.com/alauda/kube-ovn/release-1.2/dist/images/install.sh
    1. 使用编辑器打开脚本,并修改下列变量为预期值
    1. REGISTRY="kubeovn"
    2. NAMESPACE="kube-system" # The ns to deploy kube-ovn
    3. POD_CIDR="10.16.0.0/16" # Do NOT overlap with NODE/SVC/JOIN CIDR
    4. SVC_CIDR="10.96.0.0/12" # Do NOT overlap with NODE/POD/JOIN CIDR
    5. JOIN_CIDR="100.64.0.0/16" # Do NOT overlap with NODE/POD/SVC CIDR
    6. LABEL="node-role.kubernetes.io/master" # The node label to deploy OVN DB
    7. IFACE="" # The nic to support container network, if empty will use the nic that the default route use
    8. VERSION="v1.1.1"
    1. 执行安装脚本

    bash install.sh