Hi all,
I am using kong and kubernetes and connect websocket outside cluster does’nt works.
I have problem to connect websocket: Socket.js:65 WebSocket connection to ‘wss://kstaging.admooh.com/companion/api/4259514d-5b53-4aa3-95c6-6a17f817dbdc’ failed:
I got connect directly in kubernetes service without use kong.
Kubernetes service yaml:
apiVersion: v1
kind: Service
metadata:
name: companion-service
namespace: services
spec:
ports:
- port: 443
protocol: TCP
targetPort: 3020
selector:
app.kubernetes.io/instance: companion
app.kubernetes.io/name: companion
Kubernetes ingress:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
annotations:
konghq.com/protocols: 'https'
konghq.com/strip-path: 'false'
kubernetes.io/ingress.class: kong
name: companion-service
namespace: services
spec:
rules:
- host: kstaging.admooh.com
http:
paths:
- backend:
service:
name: companion-service
port:
number: 443
path: /companion
pathType: ImplementationSpecific
Somebody can help me to configure kong in kubernetes to work websockets?