1
0
Fork 0
This commit is contained in:
Cedric Girard 2020-05-15 12:53:09 +02:00
parent af71156066
commit a953776b39
Signed by: X-dark
GPG key ID: E7D0E125DB9519E4

View file

@ -3,8 +3,21 @@ provider "kubernetes" {
host = "http://127.0.0.1:8001"
}
resource "kubernetes_namespace" "example" {
resource "kubernetes_namespace" "ns" {
metadata {
name = "my-first-namespace"
name = "terraform-test"
}
}
resource "kubernetes_pod" "web" {
metadata {
name = "web"
namespace = kubernetes_namespace.ns.id
}
spec {
container {
image = "nginx:latest"
name = "web"
}
}
}