File tree Expand file tree Collapse file tree 3 files changed +52
-4
lines changed
Expand file tree Collapse file tree 3 files changed +52
-4
lines changed Original file line number Diff line number Diff line change 1+ builds :
2+ - binary : check_kubernetes
3+ goos :
4+ - windows
5+ - darwin
6+ - linux
7+ goarch :
8+ - amd64
9+ env :
10+ - CGO_ENABLED=0
11+ archive :
12+ format : tar.gz
13+ release :
14+ draft : true
Original file line number Diff line number Diff line change 1- See https://github.com/kubernetes/client-go/blob/master/INSTALL.md on
2- how to install the dependencies.
1+ # check_kubernetes
32
4- $ go get k8s.io/client-go/.. .
3+ Icinga/Nagios Kubernetes check. Checks state of individual objects .
54
6- should work .
5+ For use with https://github.com/Nexinto/kubernetes-icinga .
76
7+ ## Usage
8+
9+ ``` bash
10+ check_kubernetes -kubeconfig ... -type deployment -namespace kube-system -name kube-dns
11+
12+ ```
13+
14+ Supported types:
15+
16+ * pod
17+ * replicaset
18+ * deployment
19+ * daemonset
20+ * statefulset
21+ * node
22+ * componentstatus
23+ * service
24+
25+ ## Using Icinga
26+
27+ Use the configuration in ` examples/check_kubernetes.conf ` to configure check_kubernetes as a check_command in Icinga.
Original file line number Diff line number Diff line change 1+ object CheckCommand "check_kubernetes" {
2+
3+ command = [
4+ PluginDir + "/check_kubernetes"
5+ ]
6+
7+ arguments = {
8+ "-kubeconfig" = "$kubernetes_config$"
9+ "-type" = "$kubernetes_type$"
10+ "-name" = "$kubernetes_name$"
11+ "-namespace" = "$kubernetes_namespace$"
12+ }
13+
14+ }
You can’t perform that action at this time.
0 commit comments