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

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

Dryden Linden-Bremner January 23, 2023

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
Atlassian Team members are employees working across the company in a wide variety of roles.
January 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
AUG Leaders

Atlassian Community Events