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
1 changed files with 15 additions and 2 deletions

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"
}
}
}