Command

Kubernetes List Services Command

The Kubernetes command to list services is kubectl get services.

Quick Answer

Command
kubectl get services
KubernetesCommand

List Services

Type this command
kubectl get services

Lists all services in the namespace.

Learn More

How to list services in Kubernetes

  1. Open the terminal or command interface for Kubernetes.
  2. Type kubectl get services, replace any placeholders, and run it.

Kubernetes List Services Command

Run kubectl get services.

Related Commands

Frequently asked questions

What is the Kubernetes command to list services?

Run kubectl get services.

Where do I type this Kubernetes command?

Type it in the terminal or command-line interface used by Kubernetes.

Does this Kubernetes command work on Mac and Windows?

Yes. The command text is the same on both platforms when the tool is installed.

Official source · How we verify