@@ -2537,16 +2537,21 @@ function create_k8s_cluster() {
25372537 local platform=" $3 "
25382538 local region=" $4 "
25392539 local ttl=" ${5:- " 1" } "
2540+ local gke_machine_type=" ${K8S_UPGRADE_MACHINE_TYPE:- n1-standard-4} "
2541+ local doks_node_size=" ${K8S_UPGRADE_NODE_SIZE:- s-4vcpu-16gb-amd} "
2542+ if [[ ${ARCH} == arm64 ]]; then
2543+ gke_machine_type=" ${K8S_UPGRADE_MACHINE_TYPE:- t2a-standard-4} "
2544+ fi
25402545
25412546 case " $platform " in
25422547
25432548 doks)
2544- echo " Creating DOKS cluster: $name ($version )"
2549+ echo " Creating DOKS cluster: $name ($version , size= $doks_node_size )"
25452550 creation_time=$( date +%s)
25462551 doctl kubernetes cluster create " $name " \
25472552 --region " $region " \
25482553 --version " $version " \
2549- --size " s-4vcpu-16gb-amd " \
2554+ --size " $doks_node_size " \
25502555 --count " 3" \
25512556 --tag " delete-cluster-after-hours:$ttl " \
25522557 --tag " creation-time:$creation_time " \
@@ -2563,13 +2568,13 @@ function create_k8s_cluster() {
25632568 ;;
25642569
25652570 gke)
2566- echo " Creating GKE cluster: $name ($version )"
2571+ echo " Creating GKE cluster: $name ($version , machine-type= $gke_machine_type )"
25672572 gcloud container clusters create " $name " \
25682573 --zone " $region " \
25692574 --cluster-ipv4-cidr=/21 \
25702575 --cluster-version " $version " \
25712576 --num-nodes " 3" \
2572- --machine-type " n1-standard-4 " \
2577+ --machine-type " $gke_machine_type " \
25732578 --labels=" delete-cluster-after-hours=$ttl ,team=cloud,product=pg-operator" \
25742579 --no-enable-autoupgrade \
25752580 --monitoring=NONE \
0 commit comments