terraform update2

This commit is contained in:
Christian
2022-03-17 13:09:48 +01:00
parent 5c73779a4a
commit cf7fffab77
15 changed files with 440 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
resource "kubernetes_ingress_v1" "your-ingress" {
depends_on = [kubernetes_namespace.your-namespace]
metadata {
name = "your-ingress"
namespace = "your-namespace"
}
spec {
rule {
host = "your-domain"
http {
path {
path = "/"
backend {
service {
name = "your-service"
port {
number = 80
}
}
}
}
}
}
# (Optional) Add an SSL Certificate
# tls {
# secret_name = "ssl-certificate-object"
# hosts = ["your-domain"]
# }
}
}