variables:
KUBE_CONFIG: $KUBE_CONFIG what to write here ,whats
KUBECTL_COMMAND: 'apply'
RESOURCE_PATH: 'deployment.yml'
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 Linuxbase64 -w 0 < ~/.kube/config
and on Mac OSbase64 < ~/.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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.