Component status showing "unknown" in a multi master cluster

Hi all,

I created a multi master cluster (stacked etcd cluster) with three master nodes and one worker node in DigitalOcean Cloud. The installation method is “Kubeadm”. Deployments are running fine but when I tried to check the component status it is showing “Unknown”.

Please find below details>

kubectl get componentstatus
NAME                 AGE
controller-manager   <unknown>
scheduler            <unknown>
etcd-0               <unknown>
k get nodes
NAME       STATUS   ROLES    AGE    VERSION
master-1   Ready    master   161m   v1.16.0
master-2   Ready    master   157m   v1.16.0
master-3   Ready    master   157m   v1.16.0
worker-1   Ready    <none>   158m   v1.16.0

Cluster information:

Kubernetes version:1.16.0
Cloud being used: DigitalOcean
Installation method: Kubeadm
Host OS: Ubuntu 18.04.3
CNI and version:Calico V3.9
CRI and version: Docker version 18.09.7, build 2d0083d

Thanks in advance,
Praveen.V

Ran into this issue myself after downloading the 1.16 kubectl binary for my 1.15.3 cluster. I switched my client back to 1.15 and I was able to get the cs status again. Seems 1.16 specific.

1.15.3
Openstack
Kubeadm
Ubuntu 18.04
Weavenet
Containerd 1.13b

1 Like

Thank you for the update, I also tested the same.
kubectl get componentstatus -o yaml or json is working as expected. The only issue is with result formatted as table.

Use this to get a tabular form using jsonpath:

kubectl get componentstatus -o=custom-columns=NAME:.metadata.name,STATUS:.conditions.message