<p>What do you use instead og kubectl get ComponentStatus?</p>
<pre><code>kubectl get cs
Warning: v1 ComponentStatus is deprecated in v1.19+
</code></pre>

<p>Yes, this API is deprecated and as it provided status of <code>etcd, kube-scheduler, and kube-controller-manager</code> components, which we can get through kubectl or using <code>/livez</code> endpoint.</p>
<p>so you can try</p>
<pre><code>kubectl get --raw='/readyz?verbose'
#local cluster
curl -k https://localhost:6443/livez?verbose
</code></pre>
<p><strong>output</strong></p>
<pre><code>[+]ping ok
[+]log ok
[+]etcd ok
[+]informer-sync ok
[+]poststarthook/start-kube-apiserver-admission-initializer ok
[+]poststarthook/generic-apiserver-start-informers ok
[+]poststarthook/priority-and-fairness-config-consumer ok
[+]poststarthook/priority-and-fairness-filter ok
[+]poststarthook/start-apiextensions-informers ok
[+]poststarthook/start-apiextensions-controllers ok
[+]poststarthook/crd-informer-synced ok
[+]poststarthook/bootstrap-controller ok
[+]poststarthook/rbac/bootstrap-roles ok
[+]poststarthook/scheduling/bootstrap-system-priority-classes ok
[+]poststarthook/priority-and-fairness-config-producer ok
[+]poststarthook/start-cluster-authentication-info-controller ok
[+]poststarthook/aggregator-reload-proxy-client-cert ok
[+]poststarthook/start-kube-aggregator-informers ok
[+]poststarthook/apiservice-registration-controller ok
[+]poststarthook/apiservice-status-available-controller ok
[+]poststarthook/kube-apiserver-autoregistration ok
[+]autoregister-completion ok
[+]poststarthook/apiservice-openapi-controller ok
[+]shutdown ok
readyz check passed
</code></pre>
<blockquote>
<p>The current state of this API is problematic, and requires reversing the actual data flow (it requires the API server to call to its clients), and is not functional across deployment topologies.</p>
<p>It should be clearly marked as deprecated.</p>
</blockquote>
<p><a href="https://github.com/kubernetes/kubernetes/pull/93570" rel="nofollow noreferrer">Mark componentstatus as deprecated </a></p>
<blockquote>
<p>The Kubernetes API server provides 3 API endpoints (healthz, livez and readyz) to indicate the current status of the API server. The healthz endpoint is deprecated (since Kubernetes v1.16), and you should use the more specific livez and readyz endpoints instead.</p>
</blockquote>
<p><a href="https://kubernetes.io/docs/reference/using-api/health-checks/" rel="nofollow noreferrer">using-api-health-checks</a></p>
