I'm trying deploy kubernetes ingress with terraform. As described here
If you look further down in the documentation, you will see networking/v1
and in the resource section kubernetes_ingress_v1
. Changing the code you have in Terraform to use Ingress from the networking.k8s.io/v1
, it becomes:
resource "kubernetes_ingress_v1" "node" {
metadata {
name = "node"
}
spec {
ingress_class_name = "nginx"
rule {
host = "backend.io"
http {
path {
path = "/*"
path_type = "ImplementationSpecific"
backend {
service {
name = kubernetes_service.node.metadata.0.name
port {
number = 3000
}
}
}
}
}
}
}
}