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.
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