Please enable JavaScript.
Coggle requires JavaScript to display documents.
Kubernetes - Coggle Diagram
Kubernetes
好處
-
-
-
-
-
-
-
100% Open source, written in Go
What?
-
-
-
Kubernetes is a production-grade, open-source platform that orchestrates the placement (scheduling) and execution of application containers within and across computer clusters.
-
Why?
-
調度可解決的需求例如複雜問題,有各種依賴關係,資源大小需求不統一,資源相互競爭時需要保障特定情境的使用等。「這些都是業務面的痛點,找出調度需求的痛點,而不是容器需求的痛點,」他建議,首先該做的是提高對自身業務的了解,妥善監測自家業務的使用情況,再從數據來決定,是不是真有調度需求。
李響則建議可以從Dev和Ops的角度來評估,對開發者而言,產品發布流程卡在維運因素,導致長達2、3個月才能發布一次改版,就可以導入調度,「因為調度工具可以將維運流程自動化,將維運時間縮短到2,3天,不只是讓開發者高興,更可以提高收益。」而對維運團隊而言,每次新服務上線後,監控新服務的資源利用率是不是一大難題,若這也是企業維運的痛點,也可以成為一股導入調度工具的動力。若開發或維運都沒有遇到這類困難,「第一步是先容器化,而不要一次就導入調度工具。」
-
-
Architecture
Components
Master Node
-
kube-controller-manager
A binary that runs controllers, which are the background threads that handle routine
tasks in the cluster
-
kube-scheduler
watches newly created pods that have no node assigned, and selects a node for them to run on.
Worker Node
-
kube-proxy
enables the Kubernetes service abstraction by maintaining network rules on the host and performing connection forwarding
-
Namespace
Group + segment pods, rcs, volumes and secrets from each other
Annotations
-
Use Case
-
Build, release, or image information like timestamps, release IDs,git branch, PR numbers, image hashes, and registry address.
-
Directory entries that specify where that information can be found, such as a team web site.
-