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 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.
kubeconfig
base64 -w 0 < ~/.kube/config
base64 < ~/.kube/config
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
It looks like you're new here. Sign in or register to get started.