Skip to content

Commit

Permalink
improved machine resources
Browse files Browse the repository at this point in the history
  • Loading branch information
cheina97 committed Mar 4, 2025
1 parent 7f00149 commit eafcade
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions test/e2e/cruise/network/network_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import (
"bufio"
"context"
"fmt"
"os"
"os/exec"
"strings"
"testing"
Expand Down Expand Up @@ -285,6 +286,15 @@ func overrideArgsEKS(args *networkTestsArgs) {
}

func overrideArgsGKE(args *networkTestsArgs) {
cni, ok := os.LookupEnv("CNI")
if !ok {
panic(fmt.Errorf("CNI environment variable not set"))
}

if cni != "v1" && cni != "v2" {
panic(fmt.Errorf("CNI environment %q variable not valid", cni))
}

args.failfast = false
args.loadBalancer = true
args.nodePortExt = true // nodeport are not exposed by default, modify GKE plugin to open nodeport firewall
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/pipeline/infra/gke/const.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ export GKE_ZONES=(

# General
export GKE_NUM_NODES="2"
export GKE_MACHINE_TYPE="e2-standard-2" # "e2-micro", "e2-small", "e2-medium", "e2-standard-2", "e2-standard-4"
export GKE_DISK_TYPE="pd-balanced"
export GKE_DISK_SIZE="10"
export GKE_MACHINE_TYPE="e2-standard-4" # "e2-micro", "e2-small", "e2-medium", "e2-standard-2", "e2-standard-4"
export GKE_DISK_TYPE="pd-ssd"
export GKE_DISK_SIZE="50"

#####################

0 comments on commit eafcade

Please sign in to comment.