How do I run Kubernetes services jobs on self-hosted runners with Azure Pipelines?

Learn how to run Kubernetes services jobs on self-hosted runners with Azure Pipelines effectively. This guide covers the necessary steps to streamline your CI/CD processes in a Kubernetes environment.

Azure Pipelines, Kubernetes, self-hosted runners, CI/CD, DevOps, Continuous Integration, Continuous Deployment

<![CDATA[ # YAML example to run Kubernetes services jobs on self-hosted runners trigger: branches: include: - main jobs: - job: DeployK8s pool: name: 'MySelfHostedPool' # Specify your self-hosted runner pool steps: - task: kubectl@1 inputs: kubectlServiceConnection: 'YourK8sServiceConnection' namespace: 'default' # Specify the namespace command: 'apply' arguments: '-f $(Pipeline.Workspace)/k8s/deployment.yaml' # Path to your k8s deployment file ]]>

Azure Pipelines Kubernetes self-hosted runners CI/CD DevOps Continuous Integration Continuous Deployment