KubectlInstaller@0 - Kubectl tool installer v0 task

Use this task for installing a specific version of kubectl binary on agents.

Syntax

# Kubectl tool installer v0
# Install Kubectl on agent machine.
- task: KubectlInstaller@0
  inputs:
    #kubectlVersion: 'latest' # string. Kubectl Version Spec. Default: latest.

Inputs

kubectlVersion - Kubectl Version Spec
string. Default value: latest.

Specifies the version of kubectl to install. The acceptable values are latest or any semantic version string, e.g. 1.15.0.


Task control options

All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties.

Output variables

None.

Remarks

This task is used for installing a specific version of kubectl binary on agents.

Examples

The following YAML example showcases the installation of latest version of kubectl binary on the agent:

- task: KubectlInstaller@0
  displayName: Kubectl installer
  inputs: 
    kubectlVersion: latest

The following YAML example demonstrates the use of an explicit version string rather than installing the latest version available at the time of task execution:

- task: KubectlInstaller@0
  displayName: Kubectl installer
  inputs: 
    kubectlVersion: 1.15.0

Requirements

Requirement Description
Pipeline types YAML, Classic build, Classic release
Runs on Agent, DeploymentGroup
Demands None
Capabilities Running this task satisfies the following demands for any subsequent tasks in the same job: Kubectl
Command restrictions Any
Settable variables Any
Agent version All supported agent versions.
Task category Tool