Skip to content

Update/Add [kubectl] to ubuntu-slim #13670

@AlexisDaciuk

Description

@AlexisDaciuk

Tool name

kubectl

Tool license

Apache License Version 2.0

Add or update?

  • Add
  • Update

Desired version

In sync with latest Kubernetes release

Approximate size

No response

Brief description of tool

Kubernetes CLI tool

URL for tool's homepage

https://github.com/kubernetes/kubectl

Provide a basic test case to validate the tool's functionality.

`kubectl version` should return the tool version

Platforms where you need the tool

  • Azure DevOps
  • GitHub Actions

Runner images where you need the tool

  • Ubuntu 22.04
  • Ubuntu 24.04
  • Ubuntu Slim
  • macOS 14
  • macOS 14 Arm64
  • macOS 15
  • macOS 15 Arm64
  • macOS 26
  • macOS 26 Arm64
  • Windows Server 2022
  • Windows Server 2025
  • Windows Server 2025 with Visual Studio 2026

Can this tool be installed during the build?

Yes


    - name: Install kubectl
      shell: bash
      run: sudo apt update && sudo apt install kubectl -y


or


- uses: azure/setup-kubectl@v4
  with:
     version: latest
  id: install

Tool installation time in runtime

15 seconds

Are you willing to submit a PR?

Yes

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions