potato
potato

Reputation: 223

How to get which pod that the client is using in my loadbalancer?

I deployed a kubernetes cluster and using 3 replicas for my backend NodeJS.

I am now applying some socket function and want to make sure my redis pub and sub function is working from different pod.

Therefore, I want to display the NodeJS pod name on client side to test whether is working.

*and I am using ReactJS as my frontend (client side)

Upvotes: 0

Views: 489

Answers (1)

coderanger
coderanger

Reputation: 54249

The server pod would have to put that in a header or otherwise purposefully send it down to the client.

Upvotes: 2

Related Questions