Skip to content

一键安装

Oilbeater edited this page Dec 1, 2020 · 31 revisions

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

  1. 下载安装脚本

下载稳定版本安装脚本 对于 K8s版本大于等于1.16

wget https://raw.githubusercontent.com/alauda/kube-ovn/release-1.5/dist/images/install.sh

对于 K8s版本小于1.16

wget https://raw.githubusercontent.com/alauda/kube-ovn/release-1.5/dist/images/install-pre-1.16.sh

如果想使用最新的开发版本请使用下面的脚本

wget https://raw.githubusercontent.com/alauda/kube-ovn/master/dist/images/install.sh
  1. 使用编辑器打开脚本,并修改下列变量为预期值
 REGISTRY="kubeovn"
 POD_CIDR="10.16.0.0/16"                # Do NOT overlap with NODE/SVC/JOIN CIDR
 SVC_CIDR="10.96.0.0/12"                # Do NOT overlap with NODE/POD/JOIN CIDR
 JOIN_CIDR="100.64.0.0/16"              # Do NOT overlap with NODE/POD/SVC CIDR
 LABEL="node-role.kubernetes.io/master" # The node label to deploy OVN DB
 IFACE=""                               # The nic to support container network can be a nic name or a group of regex separated by comma, if empty will use the nic that the default route use
 VERSION="v1.5.2"

Kube-OVN 1.6 之后的版本支持通过正则表达式来匹配网卡名,例如 IFACE=enp6s0f0,eth.*

  1. 执行安装脚本

bash install.sh

Clone this wiki locally