Which Kubernetes service is only accessible within the cluster?

Study for the Kubernetes Cloud Native Associate (KCNA) Certification 1 Test. Master the core concepts of Kubernetes with multiple-choice questions and detailed explanations. Prepare and boost your confidence for the KCNA certification exam!

Multiple Choice

Which Kubernetes service is only accessible within the cluster?

Explanation:
ClusterIP is the internal-only service in Kubernetes. It assigns a virtual IP that is reachable only from inside the cluster, so pods can communicate with the service via its DNS name or cluster IP. This makes it ideal for internal communication between microservices. It cannot be reached from outside the cluster without extra wiring, such as a NodePort or LoadBalancer, or via an Ingress that routes external traffic to an internal service. ExternalName points to an external DNS name, not a cluster IP. Ingress is a separate resource used to expose external HTTP(S) traffic to services inside the cluster, with the actual service typically being a ClusterIP inside.

ClusterIP is the internal-only service in Kubernetes. It assigns a virtual IP that is reachable only from inside the cluster, so pods can communicate with the service via its DNS name or cluster IP. This makes it ideal for internal communication between microservices. It cannot be reached from outside the cluster without extra wiring, such as a NodePort or LoadBalancer, or via an Ingress that routes external traffic to an internal service. ExternalName points to an external DNS name, not a cluster IP. Ingress is a separate resource used to expose external HTTP(S) traffic to services inside the cluster, with the actual service typically being a ClusterIP inside.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy