Cov lus txib twg yog siv los tsim Kubernetes?
Cov lus txib twg yog siv los tsim Kubernetes?

Video: Cov lus txib twg yog siv los tsim Kubernetes?

Video: Cov lus txib twg yog siv los tsim Kubernetes?
Video: sawv ntxov tag ki no nlpog thauj Vuas thiab ntoo tuaj txog lawm 2024, Hlis ntuj nqeg
Anonim

Txheej txheem cej luam ntawm kubtl ua . Kubectl yog a lus txib kab cuab yeej rau kev tswj Kubernetes pawg. kubtl ua nrhiav cov ntaub ntawv hu ua config hauv $HOME/.kube directory. Koj tuaj yeem hais qhia lwm cov ntaub ntawv kubeconfig los ntawm kev teeb tsa KUBECONFIG ib puag ncig hloov pauv lossis los ntawm kev teeb tsa tus chij --kubeconfig.

Ib yam li ntawd, cov lus txib twg yog siv los tsim ib qho khoom hauv Kubernetes?

Kubernetes khoom ua tau tsim , tshiab, thiab deleted los ntawm kev siv lub kubectl command -line cuab yeej nrog rau ib yam configuration file sau hauv YAML lossis JSON.

Tsis tas li ntawd, kuv yuav pib Kubernetes li cas? Rau pib ua haujlwm nrog Kubernetes , koj yuav tsum tsim ib pawg thiab teeb tsa lub neej ntawd pawg rau gcloud thiab dhau koj cov ntaub ntawv pov thawj rau kubtl ua.

Cov lus nug tseem yog, Kubectl tsim dab tsi?

Cov kubectl tsim siv qhov tseem ceeb Management. Hauv Kubectl tsim koj qhia qhov koj xav tau tsim , rho tawm lossis hloov. Thaum lub kubtl ua thov siv Declarative mus kom ze. Qhov twg peb qhia api seb peb pawg yuav tsum zoo li cas. Yog li koj cov kev hloov pauv yuav raug tswj xyuas txawm tias koj tau siv cov kev hloov pauv rau cov khoom nyob.

Kev siv EDIT hais kom ua hauv Kubernetes yog dab tsi?

Cov kho kom raug tso cai rau koj ncaj qha kho txhua qhov peev txheej API koj tuaj yeem rov qab los ntawm lus txib cov cuab yeej kab. Nws yuav qhib lub editor txhais los ntawm koj KUBE_EDITOR, los yog Editor ib puag ncig hloov pauv, lossis poob rov qab rau 'vi' rau Linux lossis 'notepad' rau Windows.

Pom zoo: