Skip to content
Permalink
Browse files

Adding kured daemonset to deployment

  • Loading branch information
jmcshane committed Dec 23, 2019
1 parent d04416b commit b2d1fa7780956c436418030383e39aeb458657f3
Showing with 48 additions and 0 deletions.
  1. +48 −0 main.tf
48 main.tf
@@ -168,4 +168,52 @@ resource "kubernetes_service" "example" {

type = "LoadBalancer"
}
}

resource "kubernetes_daemonset" "example" {
metadata {
name = "kured"
namespace = "kube-system"
}

spec {
selector {
match_labels = {
name = "kured"
}
}

template {
metadata {
labels = {
name = "kured"
}
}

spec {
service_account_name = "kured"
host_pid = true
toleration {
effect = "NoSchedule"
key = "node-role.kubernetes.io/master"
}
container {
image = "docker.io/weaveworks/kured:1.2.0"
name = "kured"
security_context {
privileged = true
}
env {
name = "KURED_NODE_ID"
value_from {
field_ref {
field_path = "spec.nodeName"
}
}
}
command = ["/usr/bin/kured"]
}
}
}
}
}

0 comments on commit b2d1fa7

Please sign in to comment.
You can’t perform that action at this time.