> For the complete documentation index, see [llms.txt](https://dev7days.gitbook.io/dev7days/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev7days.gitbook.io/dev7days/service.md).

# 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**&#x20;

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

<img src="https://2166680554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP9VzT74ziIucCaJgfreE%2Fuploads%2FrlGM8xNrD1rtfvLCLxEB%2Ffile.excalidraw.svg?alt=media&amp;token=771183bf-bda1-47d7-aeb7-4120985fdabe" alt="" class="gitbook-drawing">

**Cluster IP**

It is the service that use for communicate between internal pod

<img src="https://2166680554-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FP9VzT74ziIucCaJgfreE%2Fuploads%2FiGcXP0hBroVLjjn0afzC%2Ffile.excalidraw.svg?alt=media&amp;token=ffee3cfb-51a7-49e0-ab11-10fd3e8cd148" alt="" class="gitbook-drawing">

**Load Balancer**

&#x20;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. &#x20;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`
