diff --git a/contrib/drivers/k8s_opensuse_v1/templates/fragments/configure-flanneld-master.sh b/contrib/drivers/k8s_opensuse_v1/templates/fragments/configure-flanneld-master.sh index 844f57bf42..0e2c9c4467 100644 --- a/contrib/drivers/k8s_opensuse_v1/templates/fragments/configure-flanneld-master.sh +++ b/contrib/drivers/k8s_opensuse_v1/templates/fragments/configure-flanneld-master.sh @@ -30,6 +30,8 @@ cat > $FLANNEL_JSON < @@ -487,6 +497,8 @@ resources: flannel_backend: {get_param: flannel_backend} flannel_network_cidr: {get_param: flannel_network_cidr} flannel_network_subnetlen: {get_param: flannel_network_subnetlen} + flannel_network_subnet_min: {get_param: flannel_network_subnet_min} + flannel_network_subnet_max: {get_param: flannel_network_subnet_max} portal_network_cidr: {get_param: portal_network_cidr} discovery_url: {get_param: discovery_url} cluster_uuid: {get_param: cluster_uuid} diff --git a/contrib/drivers/k8s_opensuse_v1/templates/kubemaster.yaml b/contrib/drivers/k8s_opensuse_v1/templates/kubemaster.yaml index 34a7a951b6..a3f5607944 100644 --- a/contrib/drivers/k8s_opensuse_v1/templates/kubemaster.yaml +++ b/contrib/drivers/k8s_opensuse_v1/templates/kubemaster.yaml @@ -49,6 +49,16 @@ parameters: description: size of subnet assigned to each master default: 24 + flannel_network_subnet_min: + type: string + description: minimum subnet + default: 10.100.50.0 + + flannel_network_subnet_max: + type: string + description: maximum subnet + default: 10.100.199.0 + flannel_backend: type: string description: > @@ -197,6 +207,8 @@ resources: "$NETWORK_DRIVER": {get_param: network_driver} "$FLANNEL_NETWORK_CIDR": {get_param: flannel_network_cidr} "$FLANNEL_NETWORK_SUBNETLEN": {get_param: flannel_network_subnetlen} + "$FLANNEL_NETWORK_SUBNET_MIN": {get_param: flannel_network_subnet_min} + "$FLANNEL_NETWORK_SUBNET_MAX": {get_param: flannel_network_subnet_max} "$FLANNEL_BACKEND": {get_param: flannel_backend} "$PORTAL_NETWORK_CIDR": {get_param: portal_network_cidr} "$ETCD_DISCOVERY_URL": {get_param: discovery_url}