Kubernetes supports four different Service types: ClusterIP, NodePort, LoadBalancer, and ExternalName. Each Service type serves a specific purpose and use case, allowing you to expose applications running in Pods to other applications or users, both inside and outside the cluster.
Kubernetes Services have the following service types:
• ClusterIP – default, randomly forward traffic to any pod set with a target port
• Headless – send traffic to the specific pod, when you have stateful pods eg. Database
• NodePort – external service allows you to use worker node IP address
• LoadBalancer – similar to NodePort except leverages Cloud Service Provider’s (CSPs) load balancer
• ExternalName — a special service that does not have selectors and uses DNS names instead
The correct answer is:
C. 4
Explanation: Kubernetes supports four different service types:
ClusterIP: The default service type, which exposes the service on a cluster-internal IP. It is accessible only within the cluster.
NodePort: Exposes the service on each node's IP at a static port. This makes the service accessible outside the cluster via <NodeIP>:<NodePort>.
LoadBalancer: Exposes the service externally using a cloud provider's load balancer. This service type automatically provisions a load balancer for the service.
ExternalName: Maps the service to a DNS name by returning a CNAME record, redirecting traffic to an external service outside the Kubernetes cluster.
These are the four primary service types in Kubernetes.
The correct answer its C
ClusterIP: The default type, exposes the Service on a cluster-internal IP.
NodePort: Exposes the Service on each Node’s IP at a static port.
LoadBalancer: Exposes the Service externally using a cloud provider's load balancer.
ExternalName: Maps a Service to an external DNS name.
c
https://kubernetes.io/docs/concepts/services-networking/service/
upvoted 1 times
...
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
shahy0
1 week, 1 day agoAtest00678
1 month, 2 weeks agomiskill
5 months, 2 weeks agojafg22
5 months, 3 weeks agoDarkren4eveR
5 months, 4 weeks ago