How to create kubernetes service connection and integrate to Azure devops

Hi Team,

Please help how to create a service account in local Kubernetes (kubeadm installed in ubuntu24) and integrate it into Azure DevOps.

I’m not sure I understand your question, since if I understand it, I’m not sure it makes sense :slight_smile: Could you please:

  1. Include a link to the lab you’re referring to.
  2. Tell me how you’ve got things hooked up. Azure is a cloud service; it’s unclear to me how it would be able to access your local K8s install in any way or manner.

Hi @rob_kodekloud,

Sorry, let me explain my question in more detail. i am planning to build a docker image using the Azure DevOps. Once the docker builds, it needs to deploy in Kubernetes. I have already setup kubeadm on my local PC. The Azure devops docker build images need to deploy in local kubeadm(kubernetes). I have gone to some youtube videos. But it is not clear.

  1. To integrate Azure DevOps to Kubernetes. 1)kubeconfig 2) service accounts and 2)AKS subscription.

For me, I need to create a service account in Kubernetes (installed on a local PC) and attach service account details in Azure DevOps.

It is not available kodekloud labs. Please help me if you have any idea. How we can create a service account in Kubernetes and integrate it into Azure deveops?

Please take a look at this page; if I understand what you’re trying to do, then you’re not going to be able to get Azure Devops to reference a local install of K8s, since it’s not going to be available to public server. You might need to use a cluster created off Azure on a personal Azure account, as long as the cluster has a public address.

I’ve been chatting a bit with a colleague; he thinks you need to install a Windows agent or similar software. If you’re not running Windows Server, that probably means you need to run it as a docker container, which you could probably do from within your cluster. Not for the faint of heart, but if you want to try, that’s what to try.