I m trying to run below ADO task but getting error: Writing this to facilitate automatic tasks to few people in team.
- ${{ if eq(parameters.BringDown, 'true')}}:
- task: KubernetesManifest@0
displayName: Scale down
inputs:
action: scale
arguments: deployment mydeployment-name --replicas=0
namespace: ${{ parameters.Environment }}
Error:
Kubectl Client Version: v1.19.0
Kubectl Server Version: v1.17.9
============================================================================== ##errorInput required: kind
The other task I tried worked well:
- ${{ if eq(parameters.Restart, 'true')}}:
- task: KubernetesManifest@0
displayName: Delete POD
inputs:
action: delete
arguments: pod -l app="${{ parameters.service }}"
namespace: ${{ parameters.Environment }}
If you specify the action to scale for this task, please note that there are other required parameters for the Kubernetes manifest task, as below.
See: Scale action for details.