Creating new namespace in cluster for random k8s experiments
This commit is contained in:
parent
9454e03f53
commit
410790765f
8
infra/vultr-kubernetes/namespaces.tf
Normal file
8
infra/vultr-kubernetes/namespaces.tf
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
resource kubernetes_namespace playground {
|
||||||
|
metadata {
|
||||||
|
annotations = {
|
||||||
|
names = var.playground.namespace
|
||||||
|
}
|
||||||
|
name = var.playground.namespace
|
||||||
|
}
|
||||||
|
}
|
@ -1,6 +0,0 @@
|
|||||||
apiVersion: v1
|
|
||||||
kind: Namespace
|
|
||||||
metadata:
|
|
||||||
name: testing
|
|
||||||
labels:
|
|
||||||
name: testing
|
|
@ -37,7 +37,7 @@ variable cluster {
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
variable personal {
|
variable playground {
|
||||||
type = object({
|
type = object({
|
||||||
namespace = string
|
namespace = string
|
||||||
})
|
})
|
||||||
|
@ -14,8 +14,8 @@ cluster = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
personal = {
|
playground = {
|
||||||
namespace = "athens-main"
|
namespace = "playground"
|
||||||
}
|
}
|
||||||
|
|
||||||
bastion = {
|
bastion = {
|
||||||
|
Loading…
Reference in New Issue
Block a user