Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion dist/bin/kctf-cluster
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,7 @@ function kctf_cluster_start_gce {
EXISTING_CLUSTER=$(gcloud container clusters list --filter "name=${CLUSTER_NAME}" --format 'get(name)')
if [ -z "${EXISTING_CLUSTER}" ]; then
CIDR="172.16.0.32/28"
gcloud container clusters create --release-channel=regular --enable-network-policy --enable-autoscaling --min-nodes ${MIN_NODES} --max-nodes ${MAX_NODES} --num-nodes ${NUM_NODES} --network ${NETWORK} --create-subnetwork name=kctf-subnet-${NETWORK} --no-enable-master-authorized-networks --enable-ip-alias --enable-private-nodes --master-ipv4-cidr ${CIDR} --enable-autorepair --preemptible --machine-type ${MACHINE_TYPE} --workload-pool=${PROJECT}.svc.id.goog ${CLUSTER_NAME} || return
gcloud container clusters create --release-channel=regular --image-type=UBUNTU_CONTAINERD --enable-nested-virtualization --node-labels=nested-virtualization=enabled --enable-network-policy --enable-autoscaling --min-nodes ${MIN_NODES} --max-nodes ${MAX_NODES} --num-nodes ${NUM_NODES} --network ${NETWORK} --create-subnetwork name=kctf-subnet-${NETWORK} --no-enable-master-authorized-networks --enable-ip-alias --enable-private-nodes --master-ipv4-cidr ${CIDR} --enable-autorepair --preemptible --machine-type ${MACHINE_TYPE} --workload-pool=${PROJECT}.svc.id.goog ${CLUSTER_NAME} || return
fi

EXISTING_ROUTER=$(gcloud compute routers list --filter "name=kctf-${CLUSTER_NAME}-nat-router" --format 'get(name)')
Expand Down Expand Up @@ -901,6 +901,9 @@ function kctf_cluster_resize {
_kctf_log 'Creating the new node pool'
gcloud container node-pools create "${NEW_POOL_NAME}" \
--cluster="${CLUSTER_NAME}" \
--image-type=UBUNTU_CONTAINERD \
--enable-nested-virtualization \
--node-labels=nested-virtualization=enabled \
--machine-type="${MACHINE_TYPE}" \
${SPOT:+--spot} \
--enable-autorepair \
Expand Down
Loading