kube-ovn中vpc没有cidr,不像传统vpc那样有大网段,关联的subnet cidr可以任意。
kind: Vpc
apiVersion: kubeovn.io/v1
metadata:
name: vpc0
---
kind: Subnet
apiVersion: kubeovn.io/v1
metadata:
name: s1
spec:
vpc: vpc0
cidrBlock: 10.0.1.0/24
protocol: IPv4
---
kind: Subnet
apiVersion: kubeovn.io/v1
metadata:
name: s2
spec:
vpc: vpc0
cidrBlock: 1.0.1.0/24
protocol: IPv4
创建后查看kube-ovn日志,没有报错。
标签:vpc,vpc0,io,cidr,kube,ovn From: https://www.cnblogs.com/WJQ2017/p/17738587.html