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?
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?
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.
Not sure if there is a way to list controllers in k8s. every resource/object in k8s is controlled by a controller (control loop) with spec fields as values for desired state. if you have deployed a controller outside control plane (built-in controllers) then what i will do to find the controller:
kubectl api-resourceskubectl get pods --all-namespaces |grep <resource-name>more info - https://kubernetes.io/docs/concepts/architecture/controller/