terraform update

This commit is contained in:
Christian
2022-03-16 17:54:10 +01:00
parent 356872bbc5
commit 5c73779a4a
9 changed files with 228 additions and 7 deletions

View File

@@ -0,0 +1,41 @@
resource "kubernetes_deployment" "your-deployment" {
depends_on = [kubernetes_namespace.your-namespace]
metadata {
name = "your-deployment"
namespace = "your-namespace"
labels = {
app = "your-app-selector"
}
}
spec {
replicas = 1
selector {
match_labels = {
app = "your-app-selector"
}
}
template {
metadata {
labels = {
app = "your-app-selector"
}
}
spec {
container {
image = "your-image:latest"
name = "your-container"
port {
container_port = 80
}
}
}
}
}
}