KubernetesManifest@0 error- Input required: kind

2/11/2021

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:

##warningResource file has already set to: /home/vsts/work/_tasks/KubernetesManifest_dee316a2-586f-4def-be79-488a1f503dfe/0.181.0/node_modules/azure-pipelines-tasks-kubernetes-common-v2/module.json

		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 }}
                  
-- abindlish
azure-devops
kubernetes

1 Answer

2/12/2021

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.

enter image description here

See: Scale action for details.

-- Edward Han-MSFT
Source: StackOverflow