kind部署的k8s集群如何调整IP网段
How to adjust the IP network segment of the k8s cluster deployed by kind
使用kind集群部署kubevela,但是部署的pod网段都是10.24开头的。我想切换到 172.16。小伙伴们应该怎么配置?
my pods ip
You can configure the subnet used for pod IPs by setting
因此创建文件,例如 config.yaml
,内容如下:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
podSubnet: "172.16.0.0/16"
创建集群时使用此文件
kind create cluster --config config.yaml
使用kind集群部署kubevela,但是部署的pod网段都是10.24开头的。我想切换到 172.16。小伙伴们应该怎么配置?
my pods ip
You can configure the subnet used for pod IPs by setting
因此创建文件,例如 config.yaml
,内容如下:
kind: Cluster
apiVersion: kind.x-k8s.io/v1alpha4
networking:
podSubnet: "172.16.0.0/16"
创建集群时使用此文件
kind create cluster --config config.yaml