Compare commits

..

No commits in common. "7f5d81f0ee59f3cd6dd387fdff48d3275a4b59fe" and "9454e03f53091743b839d9297d7aba0e47678902" have entirely different histories.

5 changed files with 9 additions and 58 deletions

View File

@ -1,47 +0,0 @@
resource kubernetes_deployment health {
metadata {
name = "health"
namespace = var.playground.namespace
}
spec {
replicas = 1
selector {
match_labels = {
name = "health"
}
}
template {
metadata {
labels = {
name = "health"
}
}
spec {
container {
name = "health"
image = "quanhua92/whoami:latest"
port {
container_port = "8080"
}
}
}
}
}
}
resource kubernetes_service health {
metadata {
name = "health"
namespace = var.playground.namespace
}
spec {
selector = {
name = "health"
}
port {
port = 80
target_port = 8080
name = "http"
}
}
}

View File

@ -1,8 +0,0 @@
resource kubernetes_namespace playground {
metadata {
annotations = {
names = var.playground.namespace
}
name = var.playground.namespace
}
}

View File

@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: testing
labels:
name: testing

View File

@ -37,7 +37,7 @@ variable cluster {
}
variable playground {
variable personal {
type = object({
namespace = string
})

View File

@ -14,8 +14,8 @@ cluster = {
}
}
playground = {
namespace = "playground"
personal = {
namespace = "athens-main"
}
bastion = {