cockroachdb / k8s

Images and utilities to run cockroach on kubernetes
Apache License 2.0
26 stars 25 forks source link

add locality-checker #31

Closed DuskEagle closed 4 years ago

DuskEagle commented 4 years ago

locality-checker is a container for detecting the region and availability zone of a CockroachDB pod running in a public Kubernetes cloud offering.

It is meant to be run as an init container, which writes the region and zone values of the pod to a volume mounted at /etc/cockroach-locality. An example Kubernetes manifest which uses the container is provided.

Requesting a review from @chrisseto on the PR. Would also appreciate if @bobvawter or @jlinder could help with creating a Docker hub repo for this container, like the request-cert container in this Git repo has.

bobvawter commented 4 years ago

I can set up a repo for you in dockerhub. cockroachdb/locality-checker ok with you?

DuskEagle commented 4 years ago

cockroachdb/locality-checker is good with me. Thanks Bob!

jlinder commented 4 years ago

@DuskEagle The repository has been created. It's a public repository, just like the other one.

https://hub.docker.com/repository/docker/cockroachdb/locality-checker

chrisseto commented 4 years ago

:shipit: