Skip to content

Commit

Permalink
VPC clusters
Browse files Browse the repository at this point in the history
  • Loading branch information
faucomte97 committed Dec 27, 2023
1 parent cf587e0 commit ccabf8d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion clusters_setup/terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ provider "helm" {
}

provider "kubectl" {
load_config_file = false
host = module.gke_cluster.host
token = module.gke_cluster.token
cluster_ca_certificate = module.gke_cluster.cluster_ca_certificate
Expand Down
7 changes: 7 additions & 0 deletions clusters_setup/terraform/modules/gke/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ resource "google_container_cluster" "primary" {
subnetwork = local.subnetwork
enable_shielded_nodes = true
enable_intranode_visibility = true
networking_mode = "VPC_NATIVE"

release_channel {
channel = local.releaseChannel
Expand All @@ -77,10 +78,16 @@ resource "google_container_cluster" "primary" {
enabled = true
}

ip_allocation_policy {}

workload_identity_config {
workload_pool = "decent-digit-629.svc.id.goog"
}

# private_cluster_config {
# enable_private_nodes = true
# }

binary_authorization {
evaluation_mode = "PROJECT_SINGLETON_POLICY_ENFORCE"
}
Expand Down
2 changes: 1 addition & 1 deletion clusters_setup/terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ variable "subnetwork" {
}

variable "kubernetesVersion" {
default = "1.26.5-gke.1400"
default = "1.27.5-gke.200"
}

variable "region" {
Expand Down

0 comments on commit ccabf8d

Please sign in to comment.