k8s service objects

Outline

Service service is one of the core words in Kubernetes objects, Kubernetes in each of the service actually is, we often mention the micro-service architecture in a micro service, before explaining Pod, RC and other resource objects are actually laying the groundwork to explain Kubernetes Service , the logic below shows the Pod, RC and Service,

 

You can see above Chart, service by service tag selector positioned back-end pod, provided that the service on the back-end of the selector must correspond Pod label to find the corresponding Pod, while the preceding frontend can be accessed through the service-to-back serving pod, while the default IP service type is divided into:

  • ClusterIP: mainly for internal cluster provides access to services
  • NodePort: outside the cluster can be accessed, the access mode for the host: port number

 

Guess you like

Origin www.cnblogs.com/fengzi7314/p/11489903.html