☸️Service

Describe about What is Service ?

It is the component that use to communicate between pod to pod or pod to external

There are 3 types of service:

  1. NodePort

  2. Cluster IP (Default)

  3. Load Balancer

Node Port

It is the service that use for communicate between pod and external

Cluster IP

It is the service that use for communicate between internal pod

Load Balancer

Due to we have multiple Node running and Pod is in the different Node so we will have a lot of URL depend on Node then It will be hard to know which URL that we need to provide to user for access. This type of service is comming to solve this problem (Support for cloud only AWS, Azure GCP)

CheatSheet Command

  1. Get Service : kubectl get svc

  2. Check the apiVersion of the template: kubectl explain svc

  3. Execute command from file kubectl apply -f <file_name>.yaml

Last updated