paritytech / helm-charts

Parity & Polkadot Helm charts collection
GNU General Public License v3.0
25 stars 22 forks source link

Add support for Gateway API as alternative to ingress #308

Closed PierreBesson closed 3 months ago

PierreBesson commented 10 months ago

https://kubernetes.io/blog/2023/10/31/gateway-api-ga/

PierreBesson commented 4 months ago

By introducing the Gateway API to expose node RPC endpoints, we should strive to make it easier to use for non devops users than the current ingress config.

Right now to expose a node RPC, we need a config which looks like this:

  ingress:
    enabled: true
    rules:
      - host: versi-tick-500-rpc.parity-versi.parity.io # This should be the only property passed to the gateway
        http:
          paths:
            - path: /
              pathType: Prefix
              backend:
                service:
                  name: versi-tick-500-node # The service name could be automatically derived from the release name
                  port:
                    number: 9944 # Port could be automatically set
    tls:
      - secretName: versi-tick-500-rpc.parity-versi.parity.io
        hosts:
          - versi-tick-500-rpc.parity-versi.parity.io
BulatSaif commented 3 months ago

Gateway API is not commonly used and is in the beta stage in most clouds. It is risky to propose using Gateway API for non-DevOps users. As an alternative, I added a default route to the ingress.