File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ usage() {
37
37
38
38
Modes are:
39
39
apiserver Not for kubectl, should be used for each apiserver independently
40
- components Check for health of k8s components (etcd, controller-manager, scheduler etc.)
41
40
nodes Check for active nodes
42
41
daemonsets Check for daemonsets readiness
43
42
deployments Check for deployments availability
@@ -47,6 +46,7 @@ usage() {
47
46
statefulsets Check for statefulsets readiness
48
47
tls Check for tls secrets expiration dates
49
48
unboundpvs Check for unbound persistent volumes.
49
+ components Check for health of k8s components (deprecated in K8s 1.19+)
50
50
EOF
51
51
52
52
exit 2
@@ -151,6 +151,7 @@ mode_apiserver() {
151
151
OUTPUT=" OK. Kubernetes apiserver health is OK"
152
152
EXITCODE=0
153
153
else
154
+ data=$( echo " $data " | grep " \[\-\]" )
154
155
OUTPUT=" CRITICAL. Kubernetes apiserver health is $data "
155
156
EXITCODE=2
156
157
fi
You can’t perform that action at this time.
0 commit comments