- DevOps with Kubernetes
- Hideto Saito Hui Chuan Chloe Lee Cheng Yang Wu
- 172字
- 2021-07-02 13:41:55
Services
Services in Kubernetes are abstraction layers for routing traffic to a logical set of pods. With Services, we don't need to trace the IP address of each pod. Services usually use the label selector to select the pods that they need to route to while, in some cases, Services are created without a selector on purpose. The Service abstraction is powerful. It enables decoupling and makes communication between micro-services possible. Currently, Kubernetes Services support TCP, UDP, and SCTP.
Services don't care about how we create the pod. Just like ReplicaSet, it only cares that the pods match its label selectors, so the pods could belong to different ReplicaSets:

In the preceding diagram, all of the pods match the service selector, project=chapter3, service=web, so the Service will be responsible for distributing the traffic into all of the pods without explicit assignment.
There are four types of Services: ClusterIP, NodePort, LoadBalancer, and ExternalName:

- ClickHouse性能之巔:從架構設計解讀性能之謎
- GeoServer Cookbook
- Java EE 6 企業級應用開發教程
- Three.js開發指南:基于WebGL和HTML5在網頁上渲染3D圖形和動畫(原書第3版)
- Data Analysis with Stata
- Kotlin Standard Library Cookbook
- AutoCAD 2009實訓指導
- JavaScript程序設計:基礎·PHP·XML
- Mastering Elixir
- 算法圖解
- Learning C++ by Creating Games with UE4
- 視窗軟件設計和開發自動化:可視化D++語言
- Python編程入門(第3版)
- 實驗編程:PsychoPy從入門到精通
- Java程序設計入門(第2版)