mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-04 09:49:50 +00:00
Merge pull request #5728 from fabioy/gke-kubeup.fix
Fix GKE kube-up code by adding project flag to network creation.
This commit is contained in:
commit
b07c46285d
@ -91,7 +91,9 @@ function kube-up() {
|
|||||||
# Make the specified network if we need to.
|
# Make the specified network if we need to.
|
||||||
if ! gcloud compute networks describe "${NETWORK}" &>/dev/null; then
|
if ! gcloud compute networks describe "${NETWORK}" &>/dev/null; then
|
||||||
echo "Creating new network: ${NETWORK}" >&2
|
echo "Creating new network: ${NETWORK}" >&2
|
||||||
gcloud compute networks create "${NETWORK}" --range "${NETWORK_RANGE}"
|
gcloud compute networks create "${NETWORK}" --project="${PROJECT}" --range "${NETWORK_RANGE}"
|
||||||
|
else
|
||||||
|
echo "Using network: ${NETWORK}" >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Allow SSH on all nodes in the network. This doesn't actually check whether
|
# Allow SSH on all nodes in the network. This doesn't actually check whether
|
||||||
@ -103,6 +105,8 @@ function kube-up() {
|
|||||||
--network="${NETWORK}" \
|
--network="${NETWORK}" \
|
||||||
--project="${PROJECT}" \
|
--project="${PROJECT}" \
|
||||||
--source-ranges="0.0.0.0/0"
|
--source-ranges="0.0.0.0/0"
|
||||||
|
else
|
||||||
|
echo "Using firewall-rule: ${FIREWALL_SSH}" >&2
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Bring up the cluster.
|
# Bring up the cluster.
|
||||||
|
Loading…
Reference in New Issue
Block a user