-
Notifications
You must be signed in to change notification settings - Fork 975
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gateway API v1.0 #2474
Comments
@mans0954 I've taken this on and after looking into gateway api docs and playing around with it myself it seems like you can easily use the resourcs from the gateaway api with the help of the I implemented it both manually and through terraform, you can see my implementation of it in my repo here: BBBmau/gateway-api/terraform Is their a reason for opening this issue when you could use the existing |
@BBBmau thank you for looking at this. In our current configuration we use There's a lot of repetition in the definition of our ingress. With
I suspect trying to do something similar with |
@mans0954 you can actually still have Dynamic HTTPRoutes with manifest with the following locals {
rules = [
{
name = "echo"
port = 1027
path = "/echo"
},
{
name = "ping"
port = 1028
path = "/ping"
}
]
}
resource "kubernetes_manifest" "httproute_echo" {
manifest = {
"apiVersion" = "gateway.networking.k8s.io/v1"
"kind" = "HTTPRoute"
"metadata" = {
"name" = "echo"
"namespace" = "default"
}
"spec" = {
"parentRefs" = [
{
"group" = "gateway.networking.k8s.io"
"kind" = "Gateway"
"name" = "kong"
},
]
"rules" = [
for i, v in local.rules :
{
"backendRefs" = [
{
"name" = v.name
"port" = v.port
},
]
"matches" = [
{
"path" = {
"type" = "PathPrefix"
"value" = v.path
}
},
]
}
]
}
}
} Though we understand the desire to have native gateway resources. We'll keep this issue open for future planning. |
@BBBmau thanks - that's useful to know in the meantime. |
Description
Are there any plans to support Gateway API now that it's [GA]?(https://kubernetes.io/blog/2023/10/31/gateway-api-ga/)
Potential Terraform Configuration
References
Community Note
The text was updated successfully, but these errors were encountered: