Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
4.5k views
in Technique[技术] by (71.8m points)

kubernetes nginx.ingress multiple websocket services

How I can specify more that one service for the nginx ingress websocket annotation?

nginx.ingress.kubernetes.io/websocket-services: "service-name"

the name implies more that one service can be supplied?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

NGINX Ingress WebSocket support page says:

To load balance a WebSocket application with NGINX Ingress controllers, you need to add the nginx.org/websocket-services(you use nginx.ingress.kubernetes.io) annotation to your Ingress resource definition. The annotation specifies which services are websocket services. The annotation syntax is as follows:

nginx.org/websocket-services: "service1[,service2,...]"

So nginx.org/websocket-services: "service-name,service-name1,..,service-nameN"


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...