Zvichipa ndima iyi pamusoro pekubernetes, ndeipi nharaunda yekuchengetedza yeKubernetes control plane?
Context:Kubernetes master node inobata Kubernetes control plane ye cluster, ichitarisira basa rayo uye kutungamira kutaurirana kuburikidza nesystem. Kubernetes control plane ine zvikamu zvakasiyana-siyana, chimwe nechimwe chine maitiro acho, anogona kumhanya pane imwechete master node kana pane akawanda masters anotsigira akakwirira-anowanikwa mapoka. Zvikamu zvakasiyana-siyana zveKubernetes control plane zvinotevera:  etcd inogara iripo, yakareruka, yakaparadzirwa, kiyi-kukosha dhata yekuchengetedza iyo CoreOS yakagadzira. It zvakavimbika inochengetera configuration mashoko kweboka, rinomiririra mamiriro yose boka panguva ipi nguva. etcd anofarira kusachinja-chinja pamusoro Kuwanikwa mune chiitiko samambure partition (ona CAP yokungotaura). Kuwirirana kunokosha nokuda kwokuronga nokushandisa nenzira yakarurama mabasa. The API Server anoshumira Kubernetes API vachishandisa JSON pamusoro HTTP, iyo inopa zvose womukati uye zvokunze inowanikwa kuna Kubernetes. The API Server anogadzira uye validates REST zvikumbiro uye inogadziridza mamiriro ari API zvinhu muna etcd, nokudaro kubvumira nemakasitoma kugadzira workloads uye midziyo mhiri mushandi nodes. The API Server anoshandisa etcd kuti wachi API kuongorora tsanga, kumhanyisa dzinokosha configuration kuchinja, kana kudzorera chero divergences ezvinhu tsanga shure kune chii deployer akazivisa. Somuenzaniso, ari deployer anogona tsanangurai kuti zviitiko zvitatu imwe "pod" (ona pazasi) vanofanira kumhanya. etcd inochengeta chokwadi ichi. Kana Deployment Controller anowana kuti mienzaniso miviri chete vari kumhanya (achipesana etcd chiziviso), rinoronga kusikwa mumwe muenzaniso kuti pod. The scheduler ndiyo extensible chinoumba kuti anosarudza pane izvo node munhu unscheduled pod (the basic entity managed by the scheduler) runs, based on resource availability. Murongi anoongorora mashandisirwo emari pane imwe neimwe node kuti ave nechokwadi chokuti basa harina kurongwa kupfuura mashandisirwo aripo. Nokuda kwechinangwa ichi, ari scheduler anofanira kuziva pfuma zvinodiwa, pfuma Kuwanikwa, uye zvimwe mushandisi-anopa constraints kana mitemo mirayiridzo akadai unhu-of-basa, ukama vs. Anti-ukama zvinodiwa, uye mashoko nzvimbo. Basa romurongi wenguva nderokuenzanisa "kupa" kwezvinhu nebasa "rinodikanwa". A controller ari reconciliation loop kuti anodzinga chaiko rematsutso mamiriro kune yaidiwa mamiriro, kukurukurirana pamwe API Server kusika, update, uye kudzima pfuma rinotarisira (semuenzaniso, pods kana basa magumo). Rumwe rudzi rwomudzori iReplication Controller, iyo inobata kudzokorora uye kuwedzerwa nekumhanyisa nhamba yakatarwa yemakopi e pod pamusanganiswa. Inobatawo nokugadzira mapods anotsiva kana node iri pasi ikatadza. Vamwe controllers kuti tiri chikamu chinoumba Kubernetes hurongwa vanosanganisira DaemonSet Controller kuti kumhanya chaizvo mumwe pod pamusoro muchina ose (kana zvimwe subset michina), uye Job Controller kuti kumhanya pods kuti kumhanya kupera (semuenzaniso, sechikamu batch basa). Label selectors ayo ari chikamu che controller's definition anotsanangura seti yemapods ayo controller inotarisira. The controller maneja chinhu muitiro kuti anotarisira kutaridza makirisito Kubernetes controllers.
ETCD