Bamboo+Docker+Kubernetes deployment

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.

Our current CI process is like this:

  • Copy from docker to host inside CI build
  • Can't Access Spring Boot API in docker container
  • Multiple Docker images in .gitlab-ci.yml
  • Bitbucket Pipelines - mvn clean install not working with JavaFX
  • How to create concourse loop for repetitive resources and jobs?
  • using a docker container to build another docker image
    • dev checks-in code changes to branch “develop”
    • bamboo triggers build process:
      • code is checked out from git
      • run build code (java)
      • run unit+integration tests
      • deploy artifact to artifactory
      • build docker image with artifact
      • tag docker image with artifact version
      • push image to docker hub

    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.

    From a technical point it should be pretty easy:

    • SSH to the master node
    • start rolling update from the replication controller with the new image

    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…

    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…

    Is there another option? Has anyone another option/better idea?
    Thoughts/Help would be very nice 🙂

  • Docker getsockopt: connection refuse
  • Connection Refused Error 61: Scrapy+splash Docker
  • Docker run appears to ignore the name argument
  • docker untagged images with tag (using docker-compose)
  • Build docker behind VPN
  • Cloudera Docker image … everthing errors out
  • One Solution collect form web for “Bamboo+Docker+Kubernetes deployment”

    I’m not familiar with Bamboo, but Kubernetes 1.2 will support the Deployment API, which will perform the rolling update on your behalf once you update the Deployment spec to the new image tag.

    Alternatively, you could try Openshift 3, which is built on Kubernetes. It supports deployments triggered by image pushes:
    https://github.com/openshift/origin/blob/master/docs/deployments.md#triggers

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.