Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

pipeline

vahida_anju
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 20, 2023

variables:

KUBE_CONFIG: $KUBE_CONFIG what to write here ,whats 

KUBECTL_COMMAND: 'apply'

RESOURCE_PATH: 'deployment.yml'

1 answer

1 vote
Patrik S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 21, 2023

Hello @vahida_anju and welcome to the Community!

It seems like you are trying to use the atlassian/kubectl-run pipe and would like to know what value you should provide for the KUBE_CONFIG value.

Based on the Prerequisites section of that atlassian/kubectl-run pipe : 

In order to configure the credentials in Pipelines, you will need to add the base64-encoded kubeconfig file as a Repository Variable. This is how you can obtain it: on Linux base64 -w 0 < ~/.kube/config and on Mac OS base64 < ~/.kube/config. Just copy the base64-encoded string from stdout and put in into the KUBE_CONFIG variable in your repository settings.

So that variable will be used by the pipe to authenticate to your Kubernetes cluster.

For additional details on that pipe's configuration and description of each available variable you can refer to its documentation in the following link : 

Thank you, @vahida_anju !

Patrik S

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events