<p>we are going to connect Azure DevOps to kubernetes on a bare metal Server with rocky Linux 9 installed. The connection between Server and Azure DevOps is already done, now we got the challenge to get Azure Devops and Kubernetes connected. Has somebody an idea, in which form we can get the connetcion between k8s and Azure Devops?</p>
<p>Hello,</p>
<p>we are going to connect Azure DevOps to kubernetes on a bare metal Server with rocky Linux 9 installed. The connection between Server and Azure DevOps is already done, now we got the challenge to get Azure Devops and Kubernetes connected. Has somebody an idea, in which form we can get the connetcion between k8s and Azure Devops?</p>

Murat
<p>On Azure DevOps, you can set up a <a href="https://learn.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints?view=azure-devops&amp;tabs=yaml#kubernetes-service-connection" rel="nofollow noreferrer"><strong>Kubernetes service connection</strong></a> to your Kubernetes.</p>
<p>Navigate to &quot;<strong>Project Settings</strong>&quot; &gt; &quot;<strong>Service connections</strong>&quot; &gt; &quot;<strong>New service connection</strong>&quot; button &gt; select &quot;<strong>Kubernetes</strong>&quot;.</p>
<p>Since your Kubernetes is hosted on your On-Premise Server, you can select &quot;<strong><code>KubeConfig</code></strong>&quot; or &quot;<strong><code>Service Account</code></strong>&quot; as the <strong>Authentication method</strong>. Then provide the required values following the notes on the window of the new service connection.</p>
<p><a href="https://i.stack.imgur.com/om0LV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/om0LV.png" alt="enter image description here" /></a></p>
<p>After the <strong>Kubernetes service connection</strong> is created successfully, you can use it in the pipelines via referencing its name to access the Kubernetes resources from pipelines on Azure DevOps.</p>
