An initial implementation of a Kubernetes discovery service using JSON Web Signatures.
This prototype is configured by kubeadm and run within Kubernetes itself.
## Requirements
This pod expects the cluster CA, endpoints list, and token map to exist in /tmp/secret. This allows us to pass them in as kubernetes secrets when deployed as a pod.
An initial implementation of a Kubernetes discovery service using JSON Web Signatures.
This prototype is expected to be run by Kubernetes itself for the time being,
and will hopefully be merged into the core API at a later time.
## Requirements
Generate a CA cert save it to: /tmp/secret/ca.pem to run the service or unit tests. (will not be required for unit tests for long) Similarly when run within kubernetes we expect a secret to be provided at this location as well. (see below)
## Build And Run From Source
```
$ make WHAT=cmd/kubediscovery
$ _output/local/bin/linux/amd64/kubediscovery
2016/08/23 19:17:28 Listening for requests on port 9898.
```
## Running in Docker
This image is published temporarily on Docker Hub as dgoodwin/kubediscovery
`docker run --rm -p 9898:9898 -v /tmp/secret/ca.pem:/tmp/secret/ca.pem --name kubediscovery dgoodwin/kubediscovery`
## Running in Kubernetes
A dummy certificate is included in ca-secret.yaml.