https://github.com/src-d/google-cloud-dns-healthcheck
https://github.com/src-d/google-cloud-dns-healthcheck
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/src-d/google-cloud-dns-healthcheck
- Owner: src-d
- License: apache-2.0
- Created: 2019-03-28T16:11:03.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-04-04T17:02:03.000Z (over 6 years ago)
- Last Synced: 2025-05-05T05:05:33.054Z (6 months ago)
- Language: Go
- Size: 2.11 MB
- Stars: 3
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: .github/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Google Cloud DNS healthcheck
This program checks the health of the IPs contained in a Google DNS record via http probes and updates the record accordingly.
```
$ google-cloud-dns-healthcheck run --help
Usage:
google-cloud-dns-healthcheck [OPTIONS] run [run-OPTIONS]
Run an in-cluster watcher for PVs and create the needed paths if needed
Help Options:
-h, --help Show this help message
[run command options]
-n, --record-name= Dns record name [$RECORD_NAME]
-p, --project= Google project [$PROJECT]
-z, --managed-zone= Google DNS managed zone [$MANAGED_ZONE]
-c, --healthcheck-path= HealthcheckPath [$HEALTHCHECK_PATH]
-r, --rrdatas= Expected rrdatas (in comma-separated format from env variable) [$RRDATAS]
-t, --http-timeout= Expected rrdatas comma-separated format (default: 5) [$HTTP_TIMEOUT]
-s, --http-scheme= Http scheme (default: http) [$HTTP_SCHEME]
-P, --http-port= Port for the HTTP connections [$HTTP_PORT]
-d, --dry-run Run without performing any modification [$DRY_RUN]
```
Google credentials are taken from the environment. The usual setup is via `GOOGLE_APPLICATION_CREDENTIALS` env variable.
There's also a [Helm chart](https://github.com/src-d/charts/tree/master/google-cloud-dns-healthcheck) to deploy it in kubernetes.