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
?
Types of Controllers We'll then dig into the four most used controllers. ReplicaSet - A ReplicaSet creates a stable set of pods, all running the same workload. You will almost never create this directly. Deployment - A Deployment is the most common way to get your app on Kubernetes.
You can check the metrics available for your version in the Kubernetes repo (link for the 1.15. 3 version). Number of kube-controller-manager instances: This value will give an idea of the general health of the kubelet in the nodes. The expected value is the number of nodes in the cluster.
Using kubectl describe pods to check kube-system If the output from a specific pod is desired, run the command kubectl describe pod pod_name --namespace kube-system . The Status field should be "Running" - any other status will indicate issues with the environment.
Examples of controllers that ship with Kubernetes today are the replication controller, endpoints controller, namespace controller, and serviceaccounts controller.
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-resources
kubectl get pods --all-namespaces |grep <resource-name>
more info - https://kubernetes.io/docs/concepts/architecture/controller/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With