官术网_书友最值得收藏!

Services

Services allow us to abstract access away from the consumers of our applications. Using a reliable endpoint, users and other programs can access pods running on your cluster seamlessly.

K8s achieves this by making sure that every node in the cluster runs a proxy named kube-proxy. As the name suggests, the job of kube-proxy is to proxy communication from a service endpoint back to the corresponding pod that is running the actual application.

The kube-proxy architecture

Membership of the service load balancing pool is determined by the use of selectors and labels. Pods with matching labels are added to the list of candidates where the service forwards traffic. A virtual IP address and port are used as the entry points for the service, and the traffic is then forwarded to a random pod on a target port defined by either K8s or your definition file.

Updates to service definitions are monitored and coordinated from the K8s cluster master and propagated to the kube-proxy daemons running on each node.

At the moment, kube-proxy is running on the node host itself. There are plans to containerize this and the kubelet by default in the future.
主站蜘蛛池模板: 庆安县| 科技| 新营市| 宿迁市| 晋江市| 汉阴县| 闽侯县| 临汾市| 揭西县| 贡山| 潜山县| 中宁县| 轮台县| 奉化市| 盖州市| 敦化市| 神农架林区| 阳西县| 白玉县| 漳州市| 油尖旺区| 江津市| 舞钢市| 宝清县| 五指山市| 镇江市| 墨脱县| 溧水县| 开封县| 阳泉市| 泸州市| 抚远县| 武清区| 昆山市| 屏东县| 宜君县| 吉安市| 宜川县| 武穴市| 道真| 白水县|