Skip to content

Commit

Permalink
types of service
Browse files Browse the repository at this point in the history
  • Loading branch information
vipulpathak113 committed Jun 25, 2023
1 parent 4ba0212 commit e4fd1ce
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -249,8 +249,9 @@ spec:
- Downtime if we change version of pods. It deletes all pods then create new pods
- Cannot rollback to previous version
---
## Types of Services:

**ClusterIP:**
**ClusterIP:** Accessible within the cluster

A ClusterIP service is the default Kubernetes service. It gives you a service inside your cluster that other apps inside your cluster can access. There is no external access.

Expand All @@ -270,7 +271,7 @@ $ kubectl proxy --port=8080

---

**NodePort:**
**NodePort:** Accessible from outside but only in the same network.

A NodePort service is the most primitive way to get external traffic directly to your service. NodePort, as the name implies, opens a specific port on all the Nodes (the VMs), and any traffic that is sent to this port is forwarded to the service.

Expand Down

0 comments on commit e4fd1ce

Please sign in to comment.