DevilKing's blog

冷灯看剑,剑上几分功名?炉香无需计苍生,纵一穿烟逝,万丈云埋,孤阳还照古陵

0%

Kubernetes Ingress 101

原文链接

Kubernetes ingress is a collection of routing rules that govern how external users access services running in a Kubernetes cluster.

Ingress in Kubernetes

  • Using a Kubernetes service of type NodePort, which exposes the application on a port across each of your nodes
  • Use a Kubernetes service of type LoadBalancer, which creates an external load balancer that points to a Kubernetes service in your cluster
  • Use a Kubernetes Ingress Resource

nodePort与service部分绑定,无关node部分,

This external load balancer is associated with a specific IP address and routes external traffic to a Kubernetes service in your cluster.

Typically, though, your Kubernetes services will impose additional requirements on your ingress. Examples of this include:

  • content-based routing, e.g., routing based on HTTP method, request headers, or other properties of the specific request
  • resilience, e.g., rate limiting, timeouts
  • support for multiple protocols, e.g., WebSockets or gRPC
  • authentication

用ingress,扩展来说,可以说是service mesh?应该是可以实现每一个部分?通过ingress controller部分来实现

Different ingress controllers will have different functionality, just like API Gateways. Here are a few choices to consider: