List all controllers running in Kubernetes

9/13/2018

I just installed the controller via Helm, I can list the helm packages via helm list, but is it possible to list all the controllers running in the cluster via kubectl or api-query?

-- murarisumit
kubectl
kubernetes

1 Answer

9/13/2018

If you mean replication controller then you can list them by kubectl:

kubectl get replicationcontroller -n my-namespace

Or list them all from all the namespaces:

kubectl get rc --all-namespaces

And you can also use API:

curl http://localhost:8080/api/v1/replicationcontrollers

Update: You can list other controller types like replicaset (rs), deployment (deploy), statefulset, daemonset (ds) and job in the same way.

-- cgrim
Source: StackOverflow