colebrooke / kubernetes-nagios

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

Not killing proxy if using direct API access #15

Closed glemignot closed 4 years ago

glemignot commented 4 years ago

Hello,

The check_kubernetes_api.sh displays a "kill" error message when running it with direct access to Kube API, since it tries to kill a non-running proxy.

The exact error : kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]

Here is a small fix for that.

Regards,

justin-ce commented 4 years ago

Many thanks for this 👍