concept Services in category kubernetes

This is an excerpt from Manning's book Learn Kubernetes in a Month of Lunches.
As to how we can make an HTTP request to the same Kubernetes Service and get responses from different Pods, that's all down to the loose-coupling between Services and Pods. When you scaled up the ReplicaSet there were suddenly multiple Pods which matched the Service's label selector, and when that happens Kubernetes load-balances requests across the Pods. Figure 6.4 shows how the same label selector maintains the relationship between ReplicaSet and Pods, and between Service and Pods.
# remove all the controllers and Services: kubectl delete all -l kiamol=ch06
Figure 10.14 Charts which deploy Services typically let you set the type, so you can keep them private
![]()

This is an excerpt from Manning's book Kubernetes in Action.
Listing 2.16. Listing Services
$ kubectl get services NAME CLUSTER-IP EXTERNAL-IP PORT(S) AGE kubernetes 10.3.240.1 <none> 443/TCP 34m kubia-http 10.3.246.185 <pending> 8080:31348/TCP 4s !@%STYLE%@! {"css":"{\"css\": \"font-weight: bold;\"}","target":"[[{\"line\":0,\"ch\":0},{\"line\":0,\"ch\":22}]]"} !@%STYLE%@!
As the Kubernetes ecosystem evolves, you’ll see more and more high-level objects, which will be much more specialized than the resources Kubernetes supports today. Instead of dealing with Deployments, Services, ConfigMaps, and the like, you’ll create and manage objects that represent whole applications or software services. A custom controller will observe those high-level objects and create low-level objects based on them. For example, to run a messaging broker inside a Kubernetes cluster, all you’ll need to do is create an instance of a Queue resource and all the necessary Secrets, Deployments, and Services will be created by a custom Queue controller. Kubernetes already provides ways of adding custom resources like this.