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

Categories

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?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
4.6k views
Welcome To Ask or Share your Answers For Others

1 Answer

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"


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...