in DEVELOPMENT :)
This is a docker container for helping with service discovery, monitoring, service certificate handling, and ordered service startup. It is designed as a separate sidekick process so you can use this for things like ElasticSearch-compatible interface startup, monitoring, and cluster management, without having to include this logic in your ElasticSearch container.
monitor-url returns anything except a 2xx http response code, it will be flagged as unavailable.Details & Gotchas are listed below.
Help: docker run skippy/service_toolkit watch --help
monitor a service:
docker run skippy/service_toolkit watch \
--label="MyService" \
--service-id="MyService-0x3241dc3" \
--monitor-url="http://127.0.0.1:9200"
Help: docker run skippy/service_toolkit hosts --help
Return a comma-delimited list of hosts: docker run skippy/service_toolkit hosts --label="MyService"
Help: docker run skippy/service_toolkit acquire-lease --help
Acquire a startup lease (return 0 on success, or blocks for timeout and then return 1 if lease was not able to be acquired):
docker run skippy/service_toolkit acquire-lease --label="MyService" --service-id="MyService-0x3241dc3"
Help: docker run skippy/service_toolkit cert --help
Acquire a x509 set of certificates, returned in a json object. The certs are created if they do not already exist:
docker run skippy/service_toolkit cert --label=MyService --x509
Help: docker run skippy/service_toolkit proxy --help
proxy to an external service that is already registered by the Monitoring service:
docker run --net=host skippy/service_toolkit proxy --service-label=MyService --local-port=9000 --service-port=9001
Check out an example of how the ServiceMonitor container is used within a set of Fleet configuration files
This is for development and testing purposes only, at this point. It is missing a few key components, but most importantly, it is NOT SECURE. Anyone can call the service and pull down certificates, and the data in transit and at rest is not secure. This needs to be addressed before it should be used in a true production setting.
To custom compile confd, do the following:
git clone https://github.com/kelseyhightower/confd.gitdocker run -it --rm -v "$(pwd)/share/confd":/usr/src/myapp -w /usr/src/myapp golang:1.3.3-wheezy /bin/bashgo get -v -d ./...
go build -v -o confd-custom-linux-amd64
$ test/test.sh
Content type
Image
Digest
sha256:ba4f9d390…
Size
66.8 MB
Last updated
about 11 years ago
docker pull skippy/service_toolkit