Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
Enable specifying kube-dns resources (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
kuldazbraslav authored Jun 9, 2022
1 parent 03e5d2e commit 2fda777
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions aws/cluster/cluster-spec.tf
Original file line number Diff line number Diff line change
Expand Up @@ -110,6 +110,9 @@ locals {
serverIP = var.kube-dns.server-ip
provider = var.kube-dns.provider
externalCoreFile = var.coredns.corefile
cpuRequest = var.kube-dns-resources.requests.cpu
memoryRequest = var.kube-dns-resources.requests.memory
memoryLimit = var.kube-dns-resources.limits.memory
nodeLocalDNS = {
enabled = var.node-local-dns-cache.enabled
forwardToKubeDNS = var.node-local-dns-cache.forwardToKubeDNS
Expand Down
21 changes: 21 additions & 0 deletions aws/cluster/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,27 @@ variable "kube-dns" {
}
}

variable "kube-dns-resources" {
type = object({
requests = object({
cpu = string
memory = string
})
limits = object({
memory = string
})
})
default = {
requests = {
cpu = "100m"
memory = "70Mi"
}
limits = {
memory = "170Mi"
}
}
}

# kube-proxy
variable "kube-proxy-params" {
type = object({
Expand Down

0 comments on commit 2fda777

Please sign in to comment.