cloudamqp / websocket-tcp-relay

Expose any TCP server as a WebSocket endpoint
Apache License 2.0
29 stars 8 forks source link

Deployment on Kubernetes cluster behhind ingress #20

Open KhalilAwada opened 1 month ago

KhalilAwada commented 1 month ago

I'm having trouble configuring cloudamqp/websocket-tcp-relay behind ingress in a Kubernetes cluster

ingress annotations are as following:

annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/configuration-snippet: |-
      proxy_http_version 1.1;
      proxy_set_header Upgrade "websocket";
      proxy_set_header Connection "Upgrade";
    nginx.ingress.kubernetes.io/proxy-body-size: 2500m
    nginx.ingress.kubernetes.io/proxy-read-timeout: '1800'
    nginx.ingress.kubernetes.io/proxy-send-timeout: '1800'
    nginx.org/websocket-services: websocket-tcp-relay
    nginx.ingress.kubernetes.io/protocol: "WebSocket"
    nginx.ingress.kubernetes.io/upgrade-websocket: "true"
spec:
  tls:
    - hosts:
        - <domain>
      secretName: websocket-tcp-relay-tls
  rules:
    - host: <domain>
      http:
        paths:
          - path: /
            pathType: Prefix
            backend:
              service:
                name: websocket-tcp-relay
                port:
                  number: 15670

Are there any instructions on how to implement this setup ?

steveb85 commented 2 weeks ago

ever figure this out @KhalilAwada i'm working on this right now.... azure aks if it helps.