Skip to content
This repository has been archived by the owner on Feb 7, 2024. It is now read-only.

Commit

Permalink
Add kubernetes in cluster readiness check
Browse files Browse the repository at this point in the history
  • Loading branch information
n0rad committed Apr 30, 2019
1 parent b34c3ed commit 49109b9
Show file tree
Hide file tree
Showing 1,750 changed files with 825,757 additions and 14,042 deletions.
3 changes: 3 additions & 0 deletions .vscode/settings.json
@@ -0,0 +1,3 @@
{
"go.formatTool": "goimports"
}
221 changes: 0 additions & 221 deletions Godeps/Godeps.json

This file was deleted.

5 changes: 0 additions & 5 deletions Godeps/Readme

This file was deleted.

15 changes: 15 additions & 0 deletions README.md
Expand Up @@ -293,3 +293,18 @@ services:
username: root
password:
```

#### Kubernetes

In cluster readiness probe.
Connect to kube api from inside the cluster and monitor pod `ready` status condition

```yaml
...
services:
- ...
checks:
- type: kubernetes
namespace: default
podName: test
```
6 changes: 6 additions & 0 deletions examples/nerve-config-kube.yml
@@ -0,0 +1,6 @@

services:
- checks:
- type: kubernetes
namespace: kube-system
podName: nerve-tests
44 changes: 44 additions & 0 deletions go.mod
@@ -0,0 +1,44 @@
module github.com/blablacar/go-nerve

go 1.12

require (
github.com/Unknwon/com v0.0.0-20190321035513-0fed4efef755 // indirect
github.com/ghodss/yaml v1.0.0
github.com/go-macaron/inject v0.0.0-20160627170012-d8a0b8677191 // indirect
github.com/go-sql-driver/mysql v1.4.1
github.com/gogo/protobuf v1.2.1 // indirect
github.com/golang/protobuf v1.3.1 // indirect
github.com/google/btree v1.0.0 // indirect
github.com/google/gofuzz v1.0.0 // indirect
github.com/googleapis/gnostic v0.2.0 // indirect
github.com/gregjones/httpcache v0.0.0-20190212212710-3befbb6ad0cc // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/json-iterator/go v1.1.6 // indirect
github.com/lib/pq v1.1.0
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.1 // indirect
github.com/n0rad/go-erlog v0.0.0-20181111211834-b57266b774d5
github.com/onsi/gomega v1.4.2
github.com/peterbourgon/diskv v2.0.1+incompatible // indirect
github.com/pkg/errors v0.8.1 // indirect
github.com/prometheus/client_golang v0.9.2
github.com/samuel/go-zookeeper v0.0.0-20180130194729-c4fab1ac1bec
github.com/spf13/cobra v0.0.3
github.com/spf13/pflag v1.0.3 // indirect
github.com/streadway/amqp v0.0.0-20190404075320-75d898a42a94
github.com/stretchr/testify v1.3.0
github.com/tevino/tcp-shaker v0.0.0-20190306083616-9f5b7a96d888
golang.org/x/crypto v0.0.0-20190426145343-a29dc8fdc734 // indirect
golang.org/x/net v0.0.0-20190424112056-4829fb13d2c6 // indirect
golang.org/x/oauth2 v0.0.0-20190402181905-9f3314589c9a // indirect
golang.org/x/time v0.0.0-20190308202827-9d24e82272b4 // indirect
gopkg.in/inf.v0 v0.9.1 // indirect
gopkg.in/ini.v1 v1.42.0 // indirect
gopkg.in/macaron.v1 v1.3.2
k8s.io/api v0.0.0-20190222213804-5cb15d344471
k8s.io/apimachinery v0.0.0-20190221213512-86fb29eff628
k8s.io/client-go v10.0.0+incompatible
k8s.io/klog v0.3.0 // indirect
sigs.k8s.io/yaml v1.1.0 // indirect
)

0 comments on commit 49109b9

Please sign in to comment.