Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
Next:
badges earned

Your Points Tracker
Challenges
Leaderboard
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Recognition
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Kudos
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bamboo support Kubernetes?

Bamboo support Kubernetes?

We are comparing Bamboo and Jenkins now, any one can help me on it?

2 answers

1 accepted

0 votes
Answer accepted

So the direct answer to your question is that there is no plugin in the Bamboo marketplace that provides support for Kubernetes.  

The two common usages would be (a) to run agents on Kubernees and (b) to choreograph activities on Kubernetes in you build plans or deployment projects.  Both of these can be done without direct support but will require more scripting in your favorite scripting language...

HTH

-Rich

I would like to add to this answer as the situation has changed since, and this thread is still a reference for this question. In terms of (a) running Bamboo Agents on Kubernetes, there are now two options:

(1) The Per Build Container project by Atlassian (available at https://bitbucket.org/atlassian/per-build-container/src/master/), which originated as an internal tool of Atlassian build engineering, and is now offered as a set of open-source Bamboo plugins. The PBC projects supports a number of ‘backends’, of which Kubernetes is one.

(2) The Bamboo Agents for Kubernetes plugin (available at https://marketplace.atlassian.com/apps/1222674/kubernetes-agents-for-bamboo). Note that I am affiliated with this plugin.

Hi Erik,

Actually i stumbled upon this while searching for smth related.
I asked my colleagues to build a Kubernetes plugin, but it took me too long for the planning.

As Rich tells you it is quite straight forward directly or through ant/maven builds.
It mainly depends how you control your kubernetes. In my case we have different environments for each stage.
And afaik you can only run one kubectl per build environment, maybe per user.

Another approach was curl 

-XPOST -d@deployment.json https://10.11.12.13:6443/apis/extensions/v1beta1/namespaces/ahk-dev/deployments -H "Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.....g" -H 'Content-Type: application/json' -k -s

Note you can't use yaml all the time.

All quite educational attempts.

At last i came to learn that the whole build/push/pull/deploy strategy for multiple containers and pods on separated environments became rather complex and an easy to develop/test and clonable build plan would be more useful to me. So i took ant for it 

A snippet of k8s deploy

<target name="kubernetes_deploy" depends="-init">
   <echo>####### TAG: ${k8s.pod.name} #######</echo>
 <antcall if:set="run.init-k8s-namespace.once" target="-init-k8s-namespace" /> 
 <property name="init-k8s.already.executed" value="true"  />
  <!-- Deleting the old deployment to ensure a deployment //--> 
         <sshexec host="${ssh.k8s.master.ip}" port="${ssh.k8s.master.port}" 
    username="master" keyfile="${ssh.k8s.master.key}" passphrase="${ssh.k8s.master.key.password}" trust="true" failonerror="false"
          command="kubectl delete deployment ${k8s.pod.name} --namespace ${k8s.namespace}" />


 <!-- copy, rewrite and move the deployment file --> 
 <property name="bak" value="./k8s/${k8s.pod.name}_deployment.yaml" />
 <antcall target="-copy-transform-yamls" />
 <scp keyfile="${ssh.k8s.master.key}" passphrase="${ssh.k8s.master.key.password}" file="${bak}" port="${ssh.k8s.master.port}" todir="master@${ssh.k8s.master.ip}:~/k8s/${k8s.namespace}/" trust="true" />


 <!-- run the new deployment -->  
 <sshexec host="${ssh.k8s.master.ip}" port="${ssh.k8s.master.port}" 
 username="master" keyfile="${ssh.k8s.master.key}" passphrase="${ssh.k8s.master.key.password}"
 command="kubectl apply --namespace ${k8s.namespace} -f /home/master/k8s/${k8s.namespace}/${k8s.pod.name}_deployment.yaml" trust="true" failonerror="false" />
 </target>


I think a Kubernetes Task is would be fun, but has as much value and restrictions than the Docker Task.

Cheers,
Corné 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Bamboo

Bamboo 101 Video

G’day Community! As we gear up to introduce Bamboo Data Center to the world, we wanted to make sure that we shared a bit more about Bamboo, the product. Our team has put together an overview video ...

227 views 4 6
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you