Kubectl installer task
Azure DevOps Services
This task can be used for installing a specific version of kubectl binary on agents.
YAML snippet
# Kubectl tool installer
# Install Kubectl on agent machine
- task: KubectlInstaller@0
inputs:
#kubectlVersion: 'latest' # Optional
Task inputs
| Parameters | Description |
|---|---|
kubectlVersionKubectl version spec |
(Optional) The version of kubectl to be installed on the agent. Acceptable values are latest or any semantic version string like 1.15.0Default value: latest |
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
Open source
This task is open source on GitHub. Feedback and contributions are welcome.
الملاحظات
إرسال الملاحظات وعرضها المتعلقة بـ