SignalR Websocket via K8S ingress
For SignalR to work (and in general for WebSockets) you should enable Sticky Sessions
Add the annotation nginx.ingress.kubernetes.io/affinity: "cookie"
to the ingress workload definition:
apiVersion: extensions/v1beta1kind: Ingressmetadata: annotations: nginx.ingress.kubernetes.io/rewrite-target: / # Enable PROXY protocol service.beta.kubernetes.io/aws-load-balancer-proxy-protocol: "*" nginx.ingress.kubernetes.io/affinity: "cookie" name: coreapilocal-ingressspec: rules: - host: coreapilocal.localhost http: paths: - backend: serviceName: coreapilocal-service servicePort: 80 path: / - backend: serviceName: coreapilocal-service servicePort: 80 path: /*