Layer 7 routing

Estimated reading time: 1 minute

When you deploy a Kubernetes application, you may want to make it accessible to users using hostnames instead of IP addresses.

Kubernetes provides ingress controllers for this. This functionality is specific to Kubernetes. If you’re trying to route traffic to Swarm-based applications, check layer 7 routing with Swarm.

Use an ingress controller when you want to:

  • Give your Kubernetes app an externally-reachable URL.
  • Load-balance traffic to your app.

A popular ingress controller within the Kubernetes Community is the NGINX controller, and can be used in Docker Enterprise Edition, but it is not directly supported by Docker, Inc.

Learn about ingress in Kubernetes.

For an example of a YAML NGINX kube ingress deployment, refer to https://success.docker.com/article/how-to-configure-a-default-tls-certificate-for-the-kubernetes-nginx-ingress-controller.

Rate this page:

 
1
 
15