hjacobs / kube-resource-report

Report Kubernetes cluster and pod resource requests vs usage and generate static HTML
GNU General Public License v3.0
715 stars 102 forks source link

Do not identify masters #123

Open guillermodep opened 4 years ago

guillermodep commented 4 years ago

Hi, kube resource reports does not get the masters label.

hjacobs commented 4 years ago

@guillermodep can you be a little bit more specific what the problem is you experience? Please elaborate otherwise it's hard to help.

guillermodep commented 4 years ago

Hi Henning, sorry for the little information, the issue is that in my okd cluster I have 3 masters, 3 infra and 4 workers, but kube reports see all the nodes as workers.

Please see the information below:

image

KUBE-reports

image

hjacobs commented 4 years ago

@guillermodep can you paste the output of kubectl get node .... -o yaml for the master nodes here? Kubernetes Resource Report uses the kubernetes.io/role label (https://github.com/hjacobs/kube-resource-report/blob/master/kube_resource_report/report.py#L30), maybe a different label is used in your setup.

guillermodep commented 4 years ago

U 're right, In OKD the label is: "node-role.kubernetes.io/compute=true", so I going to add the label just in order to try.

guillermodep commented 4 years ago

"node-role.kubernetes.io/compute=true" this is for workers, for masters is: "node-role.kubernetes.io/master=true"