0
0
Kubernetesdevops~5 mins

ClusterIP service type in Kubernetes - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a ClusterIP service in Kubernetes?
A ClusterIP service exposes the service on an internal IP in the cluster. It is reachable only within the cluster and not from outside.
Click to reveal answer
intermediate
How does a ClusterIP service route traffic to pods?
It uses kube-proxy to route requests sent to the ClusterIP to one of the backend pods selected by labels.
Click to reveal answer
beginner
Which use case fits best for a ClusterIP service?
When you want to expose a service only inside the cluster, for example, for internal communication between microservices.
Click to reveal answer
beginner
What is the default service type in Kubernetes if none is specified?
ClusterIP is the default service type if you do not specify any other type.
Click to reveal answer
beginner
Can a ClusterIP service be accessed from outside the Kubernetes cluster?
No, ClusterIP services are only accessible inside the cluster. To access from outside, use NodePort or LoadBalancer types.
Click to reveal answer
What does a ClusterIP service expose?
AAn internal IP accessible only inside the cluster
BAn external IP accessible from the internet
CA port on each node
DA load balancer IP
Which Kubernetes service type allows external access by default?
ANone
BClusterIP
CHeadless
DNodePort
What is the default service type if none is specified in Kubernetes?
ALoadBalancer
BClusterIP
CNodePort
DExternalName
How does a ClusterIP service select which pods to send traffic to?
ABy matching labels on pods
BRandomly without any selection
CBy pod IP addresses only
DBy node IP addresses
Can you access a ClusterIP service from outside the Kubernetes cluster?
AYes, always
BNo, never
COnly if you use port forwarding
DOnly with LoadBalancer
Explain what a ClusterIP service is and when you would use it.
Think about services that do not need to be exposed outside the cluster.
You got /4 concepts.
    Describe how Kubernetes routes traffic to pods using a ClusterIP service.
    Focus on how the service finds the right pods to send requests to.
    You got /4 concepts.