January 2019
Intermediate to advanced
484 pages
11h 48m
English
Services use selectors to match the pods to direct the traffic. However, sometimes you need to implement a proxy to be the bridge between the Kubernetes cluster and another namespace, another cluster, or an external resource. In the following example, we'll demonstrate how to implement a proxy for http://www.google.com in your cluster. This is just an example; the source of the proxy in your case might be the endpoint of your database or another resource in the cloud:

The configuration file is similar to the previous one, just without the selector section:
// create a service ...
Read now
Unlock full access