Kubernetes: Ma'anar, Ayyuka, da Hanyoyin Aiki

Kubernetes(wanda aka gajarta da K8s) tsarin buɗaɗɗen tushe ne da ake amfani da shi don sarrafawa da tura aikace-aikacen kwantena a cikin hanyar sadarwar kwamfuta. Kubernetes ya zama sanannen dandamali mai ƙarfi da sarrafa kwantena, wanda Google ya haɓaka asali kuma a halin yanzu babban al'umma na masu haɓaka ke kiyaye shi.

Babban ayyukan sun Kubernetes haɗa da

  1. Gudanar da Kwantena : Kubernetes yana ba ku damar haɗa aikace-aikacen da albarkatun su cikin containers. Containers samar da yanayi mara nauyi kuma tabbatar da cewa aikace-aikacen suna gudana akai-akai akan kowane tsarin.

  2. Ƙaddamarwa ta atomatik : Kubernetes yana ba da damar turawa ta atomatik da sauƙi na aikace-aikace da ayyuka. Kuna iya ƙididdige buƙatun albarkatu, adadin lokuta, kuma Kubernetes za ku kula da yanayin da ake so ta atomatik.

  3. Gudanar da Albarkatu : K8s yana sarrafa albarkatun uwar garken kamar CPU, ƙwaƙwalwar ajiya, da ajiya don tabbatar da cewa aikace-aikacen ba sa cinye albarkatu masu yawa kuma kada su tsoma baki tare da juna.

  4. Farfadowa ta atomatik da Haƙurin Laifi : Kubernetes yana taimakawa aikace-aikace su dawo ta atomatik daga gazawa. Yana iya juyawa ta atomatik zuwa sigar da ta gabata ta aikace-aikacen idan sabon sigar ta sami matsala.

  5. Load Daidaita da Rarraba Traffic : Kubernetes yana ba da hanyoyin rarraba zirga-zirga daidai gwargwado tsakanin lokutan aikace-aikace akan sabar daban-daban nodes. Wannan yana inganta aikin kuma yana tabbatar da scalability.

  6. Kanfigareshan da Gudanar da Sirri : Kubernetes yana ba ku damar sarrafa tsarin aikace-aikacen amintattu da sirri ta amfani da fasali kamar K8s Asirin da ConfigMaps.

Hanyoyin aiki sun Kubernetes haɗa da

  1. Nodes: Sabar ko kwamfutocin da ke cikin cibiyar sadarwa ana kiransu da " nodes." Akwai nau'ikan nau'ikan guda biyu nodes a cikin Kubernetes: Jagora Node da Node Worker. Jagoran Node yana sarrafawa da sarrafa dukkan tsarin, yayin da Node na Ma'aikata ke aiwatarwa containers da aikace-aikace.

  2. Pods: Pod shine mafi ƙaranci naúrar da za a iya turawa a cikin Kubernetes. Kwasfa na iya ƙunsar ɗaya ko mahara containers, amma suna raba ma'ajiyar cibiyar sadarwa iri ɗaya da zagayen rayuwa. Wannan yana sauƙaƙe sadarwa tsakanin containers kwasfa.

  3. Controller: Masu sarrafawa sune abubuwan da ke sarrafawa da kula da kwafin pods. Nau'o'in masu sarrafawa sun haɗa da ReplicaSet(tabbatar da daidai adadin da pods sake farawa idan ya cancanta), Ƙaddamarwa(sarrafa nau'ikan da sabuntawar aikace-aikace), da StatefulSet(don ƙaddamar da ƙa'idodi masu inganci).

  4. Service: Sabis hanya ce don daidaita kaya da rarraba zirga-zirga zuwa pods. Ayyuka suna sauƙaƙe don aikace-aikacen shiga pods ba tare da buƙatar sanin takamaiman wuraren su ba.

  5. Kubelet da Kube Proxy: Kubelet wani sashi ne da ke gudana akan kullin ma'aikaci, wanda ke da alhakin sarrafa pods wannan kumburin. Kube Proxy wakili ne na cibiyar sadarwa don haɗawa zuwa pods.

Sakamakon haka, Kubernetes yana sarrafa turawa da sarrafa aikace-aikacen kwantena, yana rage lokaci da ƙoƙarin da ake buƙata don kula da hadaddun tsarin.