What happens when a visitor opens your app on Kubernetes
Kubernetes DNS: how a pod finds a Service by its name
Inside Kubernetes, one app finds another by the name of its Service, never by a number. Who turns that name into an address? And how does it learn about new Services?
-
1
The order app's note holds the Service's address, a number Kubernetes picked. Beside it is cafe-menu, the name you chose. So you set the order app to keep the name and drop the number.
-
2
But a request travels to an address, never to a name. So the order app first has to ask: what is the address of cafe-menu?
The rest of this episode is for subscribers
Subscribe to read every premium episode. You can cancel when you want.
Paid yearly: $99 instead of $119.88