You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An abstract way to expose an application running on a set of Pods as a network service.
1432
+
1433
+
With Kubernetes you don't need to modify your application to use an unfamiliar service discovery mechanism. Kubernetes gives Pods their own IP addresses and a single DNS name for a set of Pods, and can load-balance across them
1434
+
1435
+
CLUSTER IP
1436
+
1437
+
ClusterIP is the default kubernetes service. This service is created inside a cluster and can only be accessed by other pods in that cluster. So basically we use this type of service when we want to expose a service to other pods within the same cluster.
1438
+
1439
+
Nodeport:
1440
+
NodePort opens a specific port on your node/VM and when that port gets traffic, that traffic is forwarded directly to the service.
1441
+
1442
+
There are a few limitations and hence its not advised to use NodePort
1443
+
1444
+
- only one service per port
1445
+
1446
+
- You can only use ports 30000-32767
1447
+
1448
+
1449
+
1450
+
LoadBalancer:
1451
+
This is the standard way to expose service to the internet. All the traffic on the port is forwarded to the service. It's designed to assign an external IP to act as a load balancer for the service. There's no filtering, no routing. LoadBalancer uses cloud service
0 commit comments