service discovery in kubernetes

Kubernetes utilizes DNS for service discovery. It is quite easy. One can use host name service_name.namespace (in my previous sample, code-sharing-api.default) to access the service (with load-balancing).

I was preparing a sample front-end webapp, and then figured out that it actually required an API gateway (Ingress, in kubernetes), instead of service discovery mechanism. Else I would face the CORS problem (front-end and back-end being on different host or port), unnecessarily.

Advertisements
This entry was posted in Cloud, Computer and Internet and tagged . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s