Cov txheej txheem:

Kuv yuav hloov Docker rau Kubernetes li cas?
Kuv yuav hloov Docker rau Kubernetes li cas?

Video: Kuv yuav hloov Docker rau Kubernetes li cas?

Video: Kuv yuav hloov Docker rau Kubernetes li cas?
Video: [Kube 96] KinD - Kubernetes в Docker - Прекращение поддержки Dockershim 2024, Kaum ib hlis
Anonim

Siv Kompose

  1. Nkag mus rau cov ntawv teev npe uas muaj koj docker - sau ntawv. yml cov.
  2. Khiav lub kompose li hais kom ua rau deploy rau Kubernetes ncaj qha, lossis hla mus rau kauj ruam tom ntej es tsis txhob tsim cov ntaub ntawv siv nrog kubtl ua .
  3. Rau hloov tus docker - sau ntawv.

Ib yam li ntawd, koj tuaj yeem nug, Kubernetes puas ua haujlwm nrog Docker?

Kubernetes yog feem ntau siv nrog Docker , tab sis nws tau kuj tseem siv tau nrog txhua lub thawv runtime.

Tsis tas li ntawd, kuv yuav tsiv mus nyob rau Kubernetes li cas? Tsib lub tswv yim kom txav koj qhov project mus rau Kubernetes

  1. Muab txhua yam hauv Docker. Nws yuav zoo li pom tseeb tab sis thawj kauj ruam yog los tsim Dockerfile rau txhua qhov chaw uas khiav raws li txheej txheem cais.
  2. 1.1 Tau Kubernetes. Koj yuav xav tau Kubernetes muaj nyob rau ntawm koj lub laptop lossis lub tshuab txhim kho.
  3. Tsim cov ntaub ntawv YAML.
  4. Siv ConfigMaps.
  5. Siv cov lus zais ruaj ntseg.
  6. Ua raws li kev kuaj mob.

Ib yam li ntawd, qhov txawv ntawm Kubernetes thiab Docker yog dab tsi?

Docker Swarm. Ib qho tseem ceeb qhov sib txawv ntawm Kubernetes thiab Docker yog li Kubernetes yog txhais tau tias yuav hla hla pawg thaum Docker sau rau ntawm ib leeg xwb. Kubernetes yog dav tshaj Docker Swarm thiab yog txhais tau los sib koom ua pawg ntawm cov nodes ntawm nplai hauv kev tsim khoom hauv ib tus yam ntxwv.

Kuv yuav nkag mus rau Kubernetes dashboard li cas?

Rau nkag mus tus dashboard kawg, qhib qhov txuas hauv qab no nrog lub web browser: kub - dashboard /services/https: kub - dashboard :/proxy/#!/login. Xaiv Token, muab tshuaj txhuam cov zis los ntawm cov lus txib dhau los rau hauv Token teb, thiab xaiv SIGN IN.

Pom zoo: