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

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.
主站蜘蛛池模板: 威远县| 东乡| 昌图县| 辽中县| 奉新县| 仲巴县| 集贤县| 邵阳县| 那曲县| 根河市| 烟台市| 中方县| 惠来县| 宜宾市| 贞丰县| 泽库县| 策勒县| 革吉县| 孝昌县| 句容市| 义乌市| 龙游县| 屏边| 黄平县| 洞口县| 连云港市| 松阳县| 张家川| 湛江市| 安乡县| 沂源县| 海淀区| 武功县| 柳河县| 盘山县| 武宣县| 彩票| 招远市| 尖扎县| 多伦县| 东至县|