Raksts 24.02.2025
3 līdzstrādnieki
Atsauksmes
Šajā rakstā
Syntax
Inputs
Output variables
Remarks
Examples
Requirements
Rādīt vēl 2
Use this task for installing a specific version of kubectl binary on agents.
- task: KubectlInstaller@0
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
.
All tasks have control options in addition to their task inputs. For more information, see Control options and common task properties .
This task is used for installing a specific version of kubectl binary on agents.
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
Izvērst tabulu
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