Skip to content

Commit

Permalink
feat: add support for node_selector (#53)
Browse files Browse the repository at this point in the history
  • Loading branch information
steveporcello authored Jul 18, 2022
1 parent dd336e3 commit c92dbd0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,9 @@ resource "kubernetes_daemonset" "lacework_datacollector" {
}
}

priority_class_name = var.pod_priority_class_name
node_selector = var.node_selector

priority_class_name = var.pod_priority_class_name
service_account_name = var.pod_service_account

container {
Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,3 +116,9 @@ variable "tolerations" {
default = [{ key = "node-role.kubernetes.io/master", effect = "NoSchedule" }]
description = "A list of Kubernetes Tolerations to apply to the DaemonSet definition"
}

variable "node_selector" {
type = map(any)
default = null
description = "A map of key:value pairs of node labels to specify which nodes to deploy the DaemonsSet to"
}

0 comments on commit c92dbd0

Please sign in to comment.