ultimateboy / slack8s

Slackbot to send important alerts from the Kubernetes event stream API to a slack channel
Other
73 stars 25 forks source link

Use kubernetes token from secrets instead of kubectl proxy #3

Open aneeshd16 opened 8 years ago

aneeshd16 commented 8 years ago

The Authorization token is stored in /var/run/secrets/kubernetes.io/serviceaccount/token. With this the master api can be accessed. The url of the master api is present in the environment variables KUBERNETES_SERVICE_HOST and KUBERNETES_PORT_443_TCP_PORT.

This will probably break local development though.