Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
7fb7e6f8
Commit
7fb7e6f8
authored
Apr 24, 2018
by
Shyam Jeedigunta
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix IP_ALIAS_SUBNETWORK env var assignment in GCE setup
parent
4344d337
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
config-default.sh
cluster/gce/config-default.sh
+1
-1
config-test.sh
cluster/gce/config-test.sh
+1
-1
No files found.
cluster/gce/config-default.sh
View file @
7fb7e6f8
...
@@ -298,7 +298,7 @@ if [ ${ENABLE_IP_ALIASES} = true ]; then
...
@@ -298,7 +298,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.
# 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.
# Note that this means SUBNETWORK would override KUBE_GCE_IP_ALIAS_SUBNETWORK in case of custom network.
if
[[
"
${
CREATE_CUSTOM_NETWORK
}
"
==
true
]]
;
then
if
[[
"
${
CREATE_CUSTOM_NETWORK
}
"
==
true
]]
;
then
IP_ALIAS_SUBNETWORK
=
"
${
SUBNETWORK
:-
IP_ALIAS_SUBNETWORK
}
"
IP_ALIAS_SUBNETWORK
=
"
${
SUBNETWORK
}
"
fi
fi
# Reserve the services IP space to avoid being allocated for other GCP resources.
# 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
}
SERVICE_CLUSTER_IP_SUBNETWORK
=
${
KUBE_GCE_SERVICE_CLUSTER_IP_SUBNETWORK
:-${
INSTANCE_PREFIX
}
-subnet-services
}
...
...
cluster/gce/config-test.sh
View file @
7fb7e6f8
...
@@ -305,7 +305,7 @@ if [ ${ENABLE_IP_ALIASES} = true ]; then
...
@@ -305,7 +305,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.
# 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.
# Note that this means SUBNETWORK would override KUBE_GCE_IP_ALIAS_SUBNETWORK in case of custom network.
if
[[
"
${
CREATE_CUSTOM_NETWORK
}
"
==
true
]]
;
then
if
[[
"
${
CREATE_CUSTOM_NETWORK
}
"
==
true
]]
;
then
IP_ALIAS_SUBNETWORK
=
"
${
SUBNETWORK
:-
IP_ALIAS_SUBNETWORK
}
"
IP_ALIAS_SUBNETWORK
=
"
${
SUBNETWORK
}
"
fi
fi
# Reserve the services IP space to avoid being allocated for other GCP resources.
# 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
}
SERVICE_CLUSTER_IP_SUBNETWORK
=
${
KUBE_GCE_SERVICE_CLUSTER_IP_SUBNETWORK
:-${
INSTANCE_PREFIX
}
-subnet-services
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment