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

Authentication Issues deploying to Azure Kubernetes Cluster

Sunil Lath March 30, 2023

When trying to apply/deploy a containerized image from an azure container repository to an Azure Kubernetes cluster we get the following issue:

 

DeploymentIssues.jpg

 

We are required to authenticate / approve access from within the bitbucket deployment pipeline, which isn't a workable when setting up an automated deployment pipeline. 

 

Any workarounds / fixes for this would be appreciated.

 

pipe: atlassian/kubectl-run:3.3.1

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 31, 2023

@Sunil Lath hi. Thanks for your question.
Maybe this article will help you.

Regards, Igor

Sunil Lath March 31, 2023

Thanks @Igor Stoyanov - this does look promising, will try and get a AKS k8s service account setup and see if that allows us access to deploy via our bitbucket pipelines.

 

The example is using AzureDevOps but will give it a go via bitbucket, I've seen examples that setup the kubeconfig based on the k8s service account here:

https://stackoverflow.com/questions/53778272/kubectl-with-custom-kubeconfig-file-for-a-serviceaccount-gives-unauthorized-erro

Like Igor Stoyanov likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events