Dab tsi yog pod network?
Dab tsi yog pod network?

Video: Dab tsi yog pod network?

Video: Dab tsi yog pod network?
Video: Модули и контейнеры - Сеть Kubernetes | Связь с контейнерами внутри модуля 2024, Hlis ntuj nqeg
Anonim

Ib qho chaw xa khoom, lossis PoD , yog "module network , suav, khaws cia, thiab cov khoom siv uas ua haujlwm ua ke kom xa kev sib tham kev pabcuam. Cov PoD yog tus qauv tsim rov ua dua, thiab nws cov khoom siv ua kom lub zog ua kom zoo, ua kom muaj peev xwm, thiab tswj tau ntawm cov chaw khaws ntaub ntawv."

Ib yam li ntawd, koj tuaj yeem nug, Kubernetes pod network yog dab tsi?

A pod muaj ib los yog ntau lub thawv uas yog collocated nyob rau tib lub tswv tsev, thiab yog configured mus qhia ib network pawg thiab lwm yam kev pab xws li ntim. Pods yog lub hauv paus unit kub daim ntawv thov yog tsim los ntawm. Txuas rau qhov ntawd yog tus choj docker0, thiab txuas rau qhov ntawd yog virtual network interface veth0.

Ib yam li ntawd, qhov txawv ntawm POD thiab thawv yog dab tsi? Pod yog ib chav ntawm kev xa tawm piv txwv li ib qho piv txwv ntawm daim ntawv thov. A pod tuaj yeem khiav ntawm ib leeg thawv los yog ntau yam thawv . Txhua pod muaj qhov tshwj xeeb IP chaw nyob muab rau nws. Yog a pod yog khiav ntawm ntau yam thawv , tiam thawv tuaj yeem sib txuas lus nrog ib leeg siv localhost.

Tsis tas li ntawd, dab tsi yog lub pod nyob rau hauv Kubernetes thiab nws ua dab tsi?

A Pod yog chav ua haujlwm yooj yim ntawm a Kubernetes daim ntawv thov unit chav me tshaj thiab yooj yim tshaj plaws hauv Kubernetes khoom qauv uas koj tsim los yog deploy. A Pod sawv cev rau cov txheej txheem khiav ntawm koj Pawg. Pods hauv a Kubernetes pawg tuaj yeem siv ob txoj hauv kev loj: Pods uas khiav ib lub thawv.

Kuv yuav nrhiav tau qhov chaw nyob IP ntawm kuv lub pod li cas?

Rau nrhiav pawg IP chaw nyob ntawm Kubernetes pod , siv kubectl qib pod hais kom ua ntawm koj lub tshuab hauv zos, nrog rau kev xaiv -o dav. Qhov kev xaiv no yuav sau cov ntaub ntawv ntau ntxiv, suav nrog cov node pod nyob rau, thiab cov pod cov pawg IP . Cov IP kem yuav muaj cov pawg sab hauv IP chaw nyob rau txhua tus pod.

Pom zoo: