Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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,455,287
Community Members
 
Community Events
175
Community Groups

How do you obtain $KUBE_CONFIG variable for a bitbucket deployment to a Kubernetes instance

Edited

So my company has been in the process of moving our backend application hosting from digital ocean droplets to a digital ocean kubernetes cluster.

However when following the bitbucket pipeline guide to update our pipelines for kubernetes (https://support.atlassian.com/bitbucket-cloud/docs/deploy-to-kubernetes/)


 - step: name: Deploy deployment: production script: - sed -i "s|{{image}}|$DOCKER_HUB_USERNAME/$APPLICATION_NAME:$BITBUCKET_COMMIT|g" deployment.yml - pipe: atlassian/kubectl-run:1.1.2 variables: KUBE_CONFIG: $KUBE_CONFIG KUBECTL_COMMAND: 'apply' RESOURCE_PATH: 'deployment.yml'

There is a variable $KUBE_CONFIG which is not explained there or in other related resources i looked at.

Does anyone know how to find this variable? how to generate it? etc?, thanks even a basic overview of what it is would be helpful at this point.

1 answer

1 accepted

1 vote
Answer accepted
Yevhen Atlassian Team Jan 24, 2023

https://bitbucket.org/atlassian/kubectl-run/src/master/

 

It's base64 encoded kubeconfig file which you can download from DO.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS

Atlassian Community Events