:“Failed to upgrade websocket connection.”,“caller”:“web/context.go:111”,“path”:“/mm/api/v4/websocket”,“request_id”:"or4g5dey5fdidkfbg474fj1 │
Hi,
I have deployed in Kubernetes and exposed with path base ingress under /mm, but i am facing this web socket issue, please help me to fix this issue,
I have attached my ingress resource file for reference.
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: mattermost-ingress
namespace: mattermost
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /mm/$2
nginx.ingress.kubernetes.io/proxy-read-timeout: “3600”
nginx.ingress.kubernetes.io/use-regex: “true”
nginx.ingress.kubernetes.io/ssl-redirect: “true”
nginx.ingress.kubernetes.io/enable-cors: “true”
nginx.ingress.kubernetes.io/cors-allow-origin: “*”
nginx.ingress.kubernetes.io/configuration-snippet: |
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection “upgrade”;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
spec:
ingressClassName: nginx
rules:
- host: devops.assam.statedatacenter.in
http:
paths:- path: /mm(/|$)(.*)
pathType: ImplementationSpecific
backend:
service:
name: mattermost-service
port:
number: 8065
- path: /mm(/|$)(.*)