Compare commits
No commits in common. "7f5d81f0ee59f3cd6dd387fdff48d3275a4b59fe" and "9454e03f53091743b839d9297d7aba0e47678902" have entirely different histories.
7f5d81f0ee
...
9454e03f53
@ -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"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
resource kubernetes_namespace playground {
|
|
||||||
metadata {
|
|
||||||
annotations = {
|
|
||||||
names = var.playground.namespace
|
|
||||||
}
|
|
||||||
name = var.playground.namespace
|
|
||||||
}
|
|
||||||
}
|
|
||||||
6
infra/vultr-kubernetes/namespaces.yaml
Normal file
6
infra/vultr-kubernetes/namespaces.yaml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
apiVersion: v1
|
||||||
|
kind: Namespace
|
||||||
|
metadata:
|
||||||
|
name: testing
|
||||||
|
labels:
|
||||||
|
name: testing
|
||||||
@ -37,7 +37,7 @@ variable cluster {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
variable playground {
|
variable personal {
|
||||||
type = object({
|
type = object({
|
||||||
namespace = string
|
namespace = string
|
||||||
})
|
})
|
||||||
|
|||||||
@ -14,8 +14,8 @@ cluster = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
playground = {
|
personal = {
|
||||||
namespace = "playground"
|
namespace = "athens-main"
|
||||||
}
|
}
|
||||||
|
|
||||||
bastion = {
|
bastion = {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user