Azure / kubelogin

A Kubernetes credential (exec) plugin implementing azure authentication
https://azure.github.io/kubelogin/
MIT License
489 stars 93 forks source link

Accessing AKS kubeconfig file from Azure DevOps artifact #312

Open sudheerkaramchand opened 1 year ago

sudheerkaramchand commented 1 year ago

I have a new requirement to manage the existing deployed AKS clusters that stores the kubeconfig individual files in Azure artifacts and should retrieve them to another pipeline to run post AKS deployment activities such as namespace creation, etc through Ansible playbooks.

Is there a way this can be achieved. Thank you.

### Tasks
weinong commented 1 year ago

Do you mean passing the kubeconfig, or any build artifacts in general, from one ADO pipeline to another?

sudheerkaramchand commented 1 year ago

@weinong Thank you for your response. Yes I have to pass the kubeconfig from Artifacts. Below is my scenario. I have an AKS cluster created through ADO using Terraform which stores the kubeconfig file in Artifacts, now the cluster has to be managed/upgraded through Ansible playbooks where the code should call the kubeconfig file from Azure artifacts. I need a sample code where this will work.