Deploying to Kubernetes with Azure DevOps
We have seen a lot of options for deploying and configuring the Kubernetes cluster via the command line. When working with DevOps, however, changes need to be applied in a continuous way.
For this, there is the Kubernetes manifest task within Azure DevOps, which contains a lot of functionalities to manage a Kubernetes cluster:
task: KubernetesManifest@0 Â Â inputs: Â Â action: 'deploy' Â Â kubernetesServiceConnection: '[service connection name]' Â Â manifests: '[path to your deployment file]' Â Â containers: 'msftazuredevops.azurecr.io/azuredevops:$(Build.BuildID)'
In the preceding example, the following is configured:
action
: The kind of action we want to perform. In this example, thedeploy
action is used because we want to deploy/apply a deployment file.kubernetesServiceConnection
: The service connection to the Kubernetes cluster.
...