Skip to content

Commit

Permalink
feat(google_gke): enable NodeLocal DNSCache addon by default (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonthomas authored May 17, 2024
1 parent 6342bd5 commit 31e6916
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions google_gke/cluster.tf
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,10 @@ resource "google_container_cluster" "primary" {
gcs_fuse_csi_driver_config {
enabled = var.fuse_csi_driver
}

dns_cache_config {
enabled = var.dns_cache
}
}

# Gateway-api
Expand Down
6 changes: 6 additions & 0 deletions google_gke/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,12 @@ variable "enable_k8s_api_proxy_ip" {
type = bool
}

variable "dns_cache" {
type = bool
description = "The status of the NodeLocal DNSCache addon."
default = true
}

variable "project_outputs" {
default = null
description = "Sets cluster-related variables based on a homegrown Project outputs data structure."
Expand Down

0 comments on commit 31e6916

Please sign in to comment.