mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 03:41:45 +00:00
Merge pull request #63074 from shyamjvs/fix-ip-alias-bug
Automatic merge from submit-queue. If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>. Fix IP_ALIAS_SUBNETWORK env var assignment in GCE setup /cc @wojtek-t ```release-note NONE ```
This commit is contained in:
commit
f646ece977
@ -295,7 +295,7 @@ if [ ${ENABLE_IP_ALIASES} = true ]; then
|
||||
# If we're using custom network, use the subnet we already create for it as the one for ip-alias.
|
||||
# Note that this means SUBNETWORK would override KUBE_GCE_IP_ALIAS_SUBNETWORK in case of custom network.
|
||||
if [[ "${CREATE_CUSTOM_NETWORK}" == true ]]; then
|
||||
IP_ALIAS_SUBNETWORK="${SUBNETWORK:-IP_ALIAS_SUBNETWORK}"
|
||||
IP_ALIAS_SUBNETWORK="${SUBNETWORK}"
|
||||
fi
|
||||
# Reserve the services IP space to avoid being allocated for other GCP resources.
|
||||
SERVICE_CLUSTER_IP_SUBNETWORK=${KUBE_GCE_SERVICE_CLUSTER_IP_SUBNETWORK:-${INSTANCE_PREFIX}-subnet-services}
|
||||
|
@ -302,7 +302,7 @@ if [ ${ENABLE_IP_ALIASES} = true ]; then
|
||||
# If we're using custom network, use the subnet we already create for it as the one for ip-alias.
|
||||
# Note that this means SUBNETWORK would override KUBE_GCE_IP_ALIAS_SUBNETWORK in case of custom network.
|
||||
if [[ "${CREATE_CUSTOM_NETWORK}" == true ]]; then
|
||||
IP_ALIAS_SUBNETWORK="${SUBNETWORK:-IP_ALIAS_SUBNETWORK}"
|
||||
IP_ALIAS_SUBNETWORK="${SUBNETWORK}"
|
||||
fi
|
||||
# Reserve the services IP space to avoid being allocated for other GCP resources.
|
||||
SERVICE_CLUSTER_IP_SUBNETWORK=${KUBE_GCE_SERVICE_CLUSTER_IP_SUBNETWORK:-${INSTANCE_PREFIX}-subnet-services}
|
||||
|
Loading…
Reference in New Issue
Block a user