Websockets on AKS using GraphQL Not Connecting Websockets on AKS using GraphQL Not Connecting kubernetes kubernetes

Websockets on AKS using GraphQL Not Connecting


You might want to start from a bit less complex config like this:

apiVersion: extensions/v1beta1kind: Ingressmetadata:  name: web-ingress  namespace: web  annotations:    kubernetes.io/ingress.class: nginx    certmanager.k8s.io/cluster-issuer: letsencrypt    ingress.kubernetes.io/ssl-redirect: "true"    kubernetes.io/tls-acme: "true"spec:  tls:  - hosts:    - my.host    secretName: tls-secret  rules:  - host: my.host    http:      paths:      - path: /        backend:          serviceName: website          servicePort: 80      - path: /graphql        backend:          serviceName: webapi          servicePort: 80

I switched the config to one endpoint instead of two. Removed some config since NGINX handles websockets out of the box. I removed regexp. I added the tls-acme annotation. And also ssl-redirect. In summary I just made it a bit less complex. Get this up and running first and then start applying advanced config stuff like the timeouts you did.

Happy to hear any feedback on this!