hajimari icon indicating copy to clipboard operation
hajimari copied to clipboard

Add support for Gateway-API

Open qjoly opened this issue 1 year ago • 0 comments

Describe the solution you'd like

Gateway API is an open source project managed by the SIG-NETWORK community. It is an API (collection of resources) that model service networking in Kubernetes. These resources - GatewayClass, Gateway, HTTPRoute, TCPRoute, etc., as well as the Kubernetes Service resource - aim to evolve Kubernetes service networking through expressive, extensible, and role-oriented interfaces that are implemented by many vendors and have broad industry support.

I mainly use API-Gateway (mostly because they are roles-based) and I think Hajimari support would be great. The annotations would be placed on the "HTTPRoute" resource (which works in a similar way to ingress).

Official documentation

Additional context Example of HTTPRoute:

apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
  name: example-route
  annotations:
    hajimari.io/enable = "true"
    hajimari.io/url = "example.com"
spec:
  parentRefs:
  - name: example-gateway
  hostnames:
  - "example.com"
  rules:
  - backendRefs:
    - name: example-svc
      port: 80

qjoly avatar Dec 22 '23 09:12 qjoly