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 to we want to perform. In this example, the deploy action is used because we want to deploy/apply a deployment file.
- kubernetesServiceConnection: The service connection...