title: Bamboo+Docker+Kubernetes deployment
body: <p>we are currently playing around with kubernetes+docker. At the moment I'm wondering how to integrate bamboo in our deployment process during development and for release.</p>
  
  <p>Our current CI process is like this:</p>
  
  <ul>
  <li>dev checks-in code changes to branch "develop"</li>
  <li>bamboo triggers build process:
  
  <ul>
  <li>code is checked out from git</li>
  <li>run build code (java)</li>
  <li>run unit+integration tests</li>
  <li>deploy artifact to artifactory</li>
  <li>build docker image with artifact </li>
  <li>tag docker image with artifact version</li>
  <li>push image to docker hub</li>
  </ul></li>
  </ul>
  
  <p>This is the current workflow at the moment. Now I would like to use bamboos deployment functionality to deploy the docker image to our kubernetes clusters.</p>
  
  <p>From a technical point it should be pretty easy:</p>
  
  <ul>
  <li>SSH to the master node</li>
  <li>start rolling update from the replication controller with the new image </li>
  </ul>
  
  <p>My question is how do I get the name of the docker image that is created during the build within my deployment task. I already thought that I might create a properties file with the variables which I store as an artifact in the build process.
  I could read-out this property file within my deployment process...</p>
  
  <p>Somehow this feels more like a workaround..another idea would be to do the deployment directly within the build task and don't use the deployment functionality at all...</p>
  
  <p>Is there another option? Has anyone another option/better idea?
  Thoughts/Help would be very nice :)</p>