Kubernetes
Easy
Networking
What is the purpose of a Kubernetes Service?
Select your answer:
Show answer and explanation
Answer: To expose an application running on a set of pods as a network service
Explanation
A Kubernetes Service is an abstraction that defines a logical set of Pods and a policy to access them. Services enable network access to a set of pods and handle service discovery within the cluster.
More easy Kubernetes questions
- Which command would you use to create a deployment from a YAML file?
- Which kubectl command would you use to get detailed information about a specific pod?
- What is a Kubernetes Namespace used for?
- What is the purpose of a ConfigMap in Kubernetes?
- Which command would you use to scale a deployment named 'nginx-deployment' to 5 replicas?
- Which kubectl command would you use to view all pods in all namespaces?