NodePort yog dab tsi?
NodePort yog dab tsi?

Video: NodePort yog dab tsi?

Video: NodePort yog dab tsi?
Video: Hmong new song 2016 - Yog dab tsi - Xub Hluav Taws (Official MV) 2024, Kaum ib hlis
Anonim

A NodePort yog qhov qhib chaw nres nkoj ntawm txhua qhov ntawm koj pawg. Txhua Kubernetes pawg txhawb nqa NodePort , txawm hais tias koj tab tom khiav hauv huab huab cua xws li Google Cloud, koj yuav tau hloov kho koj cov cai firewall. Txawm li cas los xij, a NodePort yog muab los ntawm lub pas dej ua ke ntawm pawg-configured NodePort ntau yam (feem ntau 30000–32767).

Ua li no, qhov txawv ntawm NodePort thiab ClusterIP yog dab tsi?

Dab tsi yog qhov Qhov sib txawv ntawm ClusterIP , NodePort thiab LoadBalancer hom kev pabcuam hauv Kubernetes? NodePort : Tshaj tawm cov kev pabcuam ntawm txhua Node tus IP ntawm qhov chaw nres nkoj zoo li qub (tus NodePort ). A ClusterIP service, uas NodePort kev pab cuam yuav txoj kev, yog cia li tsim.

Ib qho tseem yuav nug, NodePort yog dab tsi hauv OpenShift? OpenShift Container Platform leverages Kubernetes lub tswv yim ntawm lub plhaub taum pauv, uas yog ib lossis ntau lub thawv xa tawm ua ke ntawm ib tus tswv tsev, thiab chav ntsuas me me uas tuaj yeem txhais tau, xa mus, thiab tswj hwm. Pods yog qhov ntxhib sib npaug ntawm lub tshuab piv txwv (lub cev lossis virtual) rau lub thawv.

Kuj paub, ingress txawv li NodePort lossis LoadBalancer li cas?

NodePort thiab LoadBalancer cia koj nthuav tawm ib qho kev pabcuam los ntawm kev qhia tus nqi ntawd hauv qhov kev pabcuam hom. Ingress , ntawm lwm yam tes, yog ib qho kev ywj pheej kiag li rau koj qhov kev pabcuam. Koj tshaj tawm, tsim thiab rhuav tshem nws cais rau koj cov kev pabcuam. Qhov no ua rau nws decoupled thiab cais los ntawm cov kev pabcuam koj xav tau rau nthuav tawm.

Puas yog Ingress load balancer?

Ib Ingress Controller yog: Ib qho kev pabcuam ntawm hom Load Balancer txhawb nqa los ntawm kev xa tawm ntawm cov pods khiav hauv koj pawg. ( Ingress Cov khoom tuaj yeem xav tau raws li kev tshaj tawm kev teeb tsa snippits ntawm txheej 7 Load Balancer .)

Pom zoo: