diff --git a/tools/gate/playbooks/deploy-kubeadm-aio-common/tasks/clean-node.yaml b/tools/gate/playbooks/deploy-kubeadm-aio-common/tasks/clean-node.yaml index a3190de08..8811e460b 100644 --- a/tools/gate/playbooks/deploy-kubeadm-aio-common/tasks/clean-node.yaml +++ b/tools/gate/playbooks/deploy-kubeadm-aio-common/tasks/clean-node.yaml @@ -44,7 +44,7 @@ PVC_SUPPORT_CEPH=true PVC_SUPPORT_NFS=true NET_SUPPORT_LINUXBRIDGE=true - KUBE_NET_POD_SUBNET=192.168.0.0/16 + KUBE_NET_POD_SUBNET="{{ kubernetes.cluster.pod_subnet }}" KUBE_NET_DNS_DOMAIN=cluster.local CONTAINER_RUNTIME=docker register: kubeadm_master_deploy diff --git a/tools/gate/playbooks/deploy-kubeadm-aio-common/tasks/util-kubeadm-aio-run.yaml b/tools/gate/playbooks/deploy-kubeadm-aio-common/tasks/util-kubeadm-aio-run.yaml index 75098e09c..272c80fdb 100644 --- a/tools/gate/playbooks/deploy-kubeadm-aio-common/tasks/util-kubeadm-aio-run.yaml +++ b/tools/gate/playbooks/deploy-kubeadm-aio-common/tasks/util-kubeadm-aio-run.yaml @@ -46,7 +46,7 @@ PVC_SUPPORT_CEPH=true PVC_SUPPORT_NFS=true NET_SUPPORT_LINUXBRIDGE=true - KUBE_NET_POD_SUBNET=192.168.0.0/16 + KUBE_NET_POD_SUBNET="{{ kubernetes.cluster.pod_subnet }}" KUBE_NET_DNS_DOMAIN=cluster.local CONTAINER_RUNTIME=docker KUBELET_NODE_LABELS="{{ kubeadm_kubelet_labels }}" diff --git a/tools/gate/playbooks/vars.yaml b/tools/gate/playbooks/vars.yaml index f18e69f86..ca2f07e0b 100644 --- a/tools/gate/playbooks/vars.yaml +++ b/tools/gate/playbooks/vars.yaml @@ -24,6 +24,7 @@ kubernetes: default_device: null cluster: cni: calico + pod_subnet: 192.168.0.0/16 nodes: labels: