July 2019
Intermediate to advanced
502 pages
14h
English
Pods (one or more containers bundled together) are the units of work in Kubernetes. Deployments make sure that there are enough pods running. However, individual pods are ephemeral. Kubernetes services are where the action is and how you can expose your pods as a coherent service to other services in the cluster or even externally to the world. A Kubernetes service provides a stable identity and typically maps 1:1 to an application service (which may be a microservice or a traditional fat service). Let's look at all the services:
$ kubectl get svcNAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGEapi-gateway LoadBalancer 10.103.167.102 <pending> 80:31965/TCP 6m2skubernetes ClusterIP 10.96.0.1 <none> 443/TCP ...