You are on page 1of 8

Using Services in

Kubernetes
Using K8s Services
K8s Network Policies

➔ ServiceTypes

➔ ClusterIP Service

➔ NodePort Service

➔ LoadBalancer Service

➔ Hands-On Demonstration
What is ServiceType
➢ Each Service has a Type. ServiceType define how and where
Service will Expose the Application.

➢ There are 4 Types:


○ ClusterIP
○ NodePort
○ LoadBalancer
○ ExternalName
ClusterIP Service
➢ ClusterIP Service
Client Service
expose Application (Pods)
within Cluster
Network.

➢ Use ClusterIP, when


client is Other Pods
within the Cluster. Pod-1 Pod-2 Pod-N
NodePort Service
➢ NodePort Service
expose Application Cluster Pod -1
Outside Cluster
Network.

➢ Use NodePort, when Client CService Pod -2


client is accessing the
Service from Outside
the Cluster.
Pod -N
LoadBalancer Service
➢ Load Balancer Service
also expose Cluster Pod -1
Application to Outer
World but Cloud ILB is
required.
CService Pod -2

Client Cloud LB Pod -N


Hands On Demonstration
Thank You...
Don’t be the Same! Be Better!!!

You might also like