Question
A Kubernetes cluster will have a pod running on a node. The ReplicationController will create a copy (or copies) of a pod to ensure it is available. What is a service in the context of a Kubernetes cluster?
Answer
"A Service in Kubernetes is an abstraction which defines a logical set of Pods and a policy by which to access them." This quote was taken from https://kubernetes.io/docs/tutorials/kubernetes-basics/expose/expose-intro/
A service is a networking service with a static IP address that connects requests to pods in the Kubernetes cluster (page 48 of Kubernetes in Action by Luksa). A service's IP address does not change (page 48 of Kubernetes in Action).
You can use the kubectl expose
command to create a service. To read more, see this posting.