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

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.
主站蜘蛛池模板: 陇川县| 凌云县| 五家渠市| 金寨县| 广饶县| 剑川县| 甘孜县| 蕉岭县| 夏津县| 讷河市| 平利县| 湛江市| 遵义县| 梧州市| 铅山县| 东乌珠穆沁旗| 三台县| 北辰区| 祁阳县| 白沙| 平顺县| 西盟| 邮箱| 威远县| 开远市| 北安市| 都江堰市| 达拉特旗| 容城县| 调兵山市| 胶州市| 平阴县| 广丰县| 金乡县| 蕉岭县| 永康市| 宁津县| 宜都市| 海丰县| 汨罗市| 青川县|