Skip to content

Commit

Permalink
Create foo.tf
Browse files Browse the repository at this point in the history
  • Loading branch information
try-panwiac authored Dec 19, 2024
1 parent 61a31fe commit 26818e4
Showing 1 changed file with 59 additions and 0 deletions.
59 changes: 59 additions & 0 deletions foo.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
resource "kubernetes_daemonset" "example" {
metadata {
name = "terraform-example"
namespace = "something"
labels = {
test = "MyExampleApp"
}
}

spec {
selector {
match_labels = {
test = "MyExampleApp"
}
}

template {
metadata {
labels = {
test = "MyExampleApp"
}
}

spec {
container {
image = "nginx:1.21.6"
name = "example"

resources {
limits = {
cpu = "0.5"
memory = "512Mi"
}
requests = {
cpu = "250m"
memory = "50Mi"
}
}

liveness_probe {
http_get {
path = "/"
port = 80

http_header {
name = "X-Custom-Header"
value = "Awesome"
}
}

initial_delay_seconds = 3
period_seconds = 3
}

}
}
}
}
}

0 comments on commit 26818e4

Please sign in to comment.