Istio ingress gateway configuration for EventSource

11/11/2020

I am using Spring SSEEventEmitter library to publish events from server-side to client. Clients will subscribe for the event in first call and listen to server sent events.

I have deployed the application on Kubernetes which is enabled with Istio. Rest API is exposed for subscribing for the server events. Istio Ingress Gatway is used to be able to access API outside the Mesh/Kubernetes.

There is a similar issue has been raise for configuration on Nginx Ingress which is solved by adding K8s annotations (nginx.ingress.kubernetes.io/eventsource: "true") to Nginx Ingress object.

Is there similar configuration available for Istio Ingress Gateway as well?

-- Basavaraj Dhanashetti
eventsource
istio
kubernetes
server-sent-events
spring-boot

0 Answers