Services

Services – An abstract way to expose an application running on a set of Pods as a network service. With Kubernetes you don’t need to modify your application to use an unfamiliar service discovery mechanism. Kubernetes gives Pods their own IP addresses and a single DNS name for a set of Pods, and can load-balance across them.

  1. List one or more services.

kubectl get services
  1. Display the detailed state of a service.

kubectl describe services
  1. Expose a replication controller, service, deployment, or pod as a new Kubernetes service.

kubectl expose deployment [deployment_name]
  1. Edit and update the definition of one or more services.

kubectl edit services

Last updated