Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,297,152
Community Members
 
Community Events
165
Community Groups

Ability to mount custom volumes in self hosted pipelines runner into a build container

Hi Atlassian Community:

We are running self hosted pipelines runner in GKE cluster. We need to pull/push docker images from/to "gcr.io" in a pipeline.

In GKE cluster, we use Kubernetes Service Account + GKE workload identity to allow an application (Kubernetes POD) to be able to access GCP services/resources, including logging in to gcr.io. This is a regular and recommended way to authorise applications to access services/resources in GCP (and AWS/Azure) cloud environment, and it's safer than using a static service account key file or credentials.

With Kubernetes Service Account + GKE Workload Identity, we can login to “gcr.io” in the bitbucket-pipelines-runner and docker:dind containers of a POD. But a build container which is started by bitbucket-pipelines-runner runs as docker in docker. The build container couldn’t access the mounted service account token in bitbucket-pipelines-runner container (i.e. “/var/run/secrets/kubernetes.io/serviceaccount”). As the result, we won’t be able to login to gcr.io within the build container and “docker build/pull/push” in a pipeline fails.

If we could have an ability to mount “/var/run/secrets/kubernetes.io/serviceaccount” into the build container, the issue would be solved.

With this ability, we may also pass some environment related variables into the build container by mounting file(s) without defining them in Bitbucket Cloud workspace/repository variables separately. 

I raised a feature request (https://jira.atlassian.com/browse/BCLOUD-21738) for this. Not sure what's the process for this feature request being picked up?

 

Regards,

Aaron

0 comments

Comment

Log in or Sign up to comment
TAGS
Community showcase
Published in Bitbucket

Git push size limits are coming to Bitbucket Cloud starting April 4th, 2022

Beginning on April 4th, we will be implementing push limits. This means that your push cannot be completed if it is over 3.5 GB. If you do attempt to complete a push that is over 3.5 GB, it will fail...

2,208 views 2 9
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