colebrooke / kubernetes-nagios

Basic health checks for a Kubernetes cluster
MIT License
50 stars 44 forks source link

ComponentStatus is deprecated in v1.19+ #16

Closed ebourg closed 3 years ago

ebourg commented 3 years ago

Hi,

check_kubernetes.sh -m components fails with Kubernetes 1.19 with the following error:

parse error: Invalid numeric literal at line 1, column 8

It seems to be caused by a warning message displayed before the JSON payload after calling api/v1/componentstatuses:

Warning: v1 ComponentStatus is deprecated in v1.19+{"apiVersion": "v1","items":...
ebourg commented 3 years ago

Sorry I reported this to the wrong project, this was aimed at https://github.com/agapoff/check_kubernetes. It might be nice to merge your efforts around a common check script for Kubernetes.