mediadepot / chef-depot

DEPRECATED: Replaced by mediadepot/ignition
https://github.com/mediadepot/ignition
28 stars 2 forks source link

[events/backup/updater] check if its possible to use dynamically allocated API keys for events and such #18

Closed AnalogJ closed 8 years ago

AnalogJ commented 8 years ago

This is awesome! There's an undocumented feature of Rancher that will make it a bit easier to deploy these types of services. Just put the labels

labels: io.rancher.container.create_agent: true io.rancher.container.agent.role: environment What this will do is when you deploy your container we will create an API key for the container and set it as env vars CATTLE_URL, CATTLE_ACCESS_KEY, and CATTLE_SECRETKEY. Now that I write this I realize those should probably be RANCHER*. I'll change that at some point...

But honestly we've been having fun writing little utilities similar to this. I'm glad to see others doing it.

http://forums.rancher.com/t/alarms-in-rancher/930

AnalogJ commented 8 years ago

this is working on rancher-events container.