Skip to content
Discussion options

You must be logged in to vote

Thank you @arkodg,

this is a very helpful tip. Together with the right BackendTrafficPolicy it actually works like a charm.

I'll record the solution here for posterity. It consists of:

  • the Gateway
  • the corresponding ClientTrafficPolicy
  • a TCPRoute
  • and the accompanying BackendTrafficPolicy
apiVersion: gateway.networking.k8s.io/v1
kind: Gateway
metadata:
  name: mysql
    namespace: envoy-gateway-system
spec:
  gatewayClassName: internal
  listeners:
    - name: mysql
      protocol: TCP
      port: 3306
      allowedRoutes:
        kinds:
        - group: gateway.networking.k8s.io
          kind: TCPRoute
        namespaces:
          from: Selector
          selector:
            matchLabels

Replies: 1 comment 1 reply

Comment options

@jabbrwcky
Comment options

Answer selected by jabbrwcky
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants