Automic VaultAutomic Vault

brew

使用 Homebrew, chocolatey, winget, apk, apt, MacPorts, Nix, pacman, scoop 安装 kubernetes-cli

查看 kubernetes-cli 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

代理安全

代理安全回答

kubernetes-cli provides kubectl, which controls Kubernetes clusters and workloads.

凭据访问

Reads kubeconfig, exec credentials, cluster tokens, and namespace context.

远程变更

Can create, patch, delete, scale, and exec into cluster workloads.

发布/制品风险

Can apply manifests that deploy or expose application artifacts.

推荐控制

Gate kubectl apply, delete, patch, exec, port-forward, and context changes.

代理使用指南

Allow get/describe with safe contexts; require approval for cluster writes and secret reads.

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install kubernetes-cli

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install kubectl

MacPorts ports tree · sysutils/kubectl/Portfile · 来源: api.github.com

Linux

Alpine Linux apk已验证 · 92%
sudo apk add kubectl

Alpine Linux edge package indexes · kubectl · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install kubectl

Debian stable package indexes · kubectl · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#kubectl

nixpkgs package indexes · pkgs/by-name/ku/kubectl/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S kubectl

Arch Linux sync databases · kubectl · 来源: geo.mirror.pkgbuild.com

Windows

Chocolatey已验证 · 92%
choco install kubernetes-cli

Chocolatey community package catalog · kubernetes-cli · 来源: community.chocolatey.org

Windows Package Manager已验证 · 92%
winget install --id Kubernetes.kubectl -e

Windows Package Manager source index · Kubernetes.kubectl · 来源: cdn.winget.microsoft.com

Scoop已验证 · 92%
scoop install main/kubectl

Scoop official bucket manifest trees · bucket/kubectl.json · 来源: api.github.com

概览

软件包摘要

Kubernetes command-line interface

命令和别名

  • kubectl

历史

项目历史与用法

kubectl is the Kubernetes command-line client and the binary packaged by Homebrew as kubernetes-cli. It is the standard local interface for sending requests to the Kubernetes control plane, reading and writing objects, inspecting resources, and driving day-to-day cluster operations.

项目历史

Kubernetes began as an open source Google project in 2014 and reached version 1.0 on July 21, 2015, alongside Google's announcement that the project would be donated to the newly formed Cloud Native Computing Foundation. kubectl evolved with the project as the human-facing client for the Kubernetes API.

采用历史

As Kubernetes became the common substrate for cloud-native infrastructure, kubectl became one of the most widely installed operations binaries in developer and platform-engineering toolchains. Its packaging across Homebrew, Linux distributions, Chocolatey, Scoop, winget, Nix, MacPorts, and other systems reflects that it is both a developer tool and an infrastructure administration tool.

使用方式

kubectl reads kubeconfig data to select a cluster, user, namespace, and context, then communicates with the API server. Kubernetes documentation says kubectl looks for config in $HOME/.kube/config by default, while KUBECONFIG and --kubeconfig allow explicit or merged configuration files.

为什么软件包爱好者会关心

The kubernetes-cli package is significant because it decouples the local client from a full Kubernetes installation. Package managers let users pin or upgrade the client, match cluster version-skew policy, and keep scripts using a predictable kubectl binary without installing control-plane components.

时间线

  • 2014: Kubernetes was released as an open source project.
  • 2015-07-21: Kubernetes 1.0 was released and the project was donated to the CNCF.
  • 2023-08-15: Kubernetes documented pkgs.k8s.io as community-owned package repositories for Kubernetes packages.
  • 2025-04-23: Kubernetes v1.33 was released.
  • 2025-08-27: Kubernetes v1.34 was released.

Related projects

  • kubectl is related to the Kubernetes API server, kubeconfig, client-go, kubeadm, kustomize, Helm, kubectl plugins, and the broader SIG CLI tooling ecosystem.

安全态势

风险级别:orange

cluster orchestration infrastructure.

风险分类器

orange 风险 · 高 置信度 · infrastructure

原因

  • cluster orchestration infrastructure

信号

  • override:kubernetes-cli

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
~/.kube/config

Credential files

Credential-bearing paths to review before unattended agent runs.

Unix
~/.kube/config

可执行文件

已安装的可执行文件

命令类型暴露范围备注
kubectlcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.36.3
管理器更新时间2026-07-23
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/kubernetes/kubernetes

安装元数据

软件包元数据

软件包键brew:kubernetes-cli
版本1.36.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/kubernetes-cli
主页https://kubernetes.io/docs/reference/kubectl/
仓库https://github.com/kubernetes/kubernetes
上游文档https://kubernetes.io/docs/concepts/configuration/organize-cluster-access-kubeconfig
许可证Apache-2.0
源码归档https://github.com/kubernetes/kubernetes.git
最后更新2026-07-23T03:43:20Z
Pulseupdated
构建依赖bash, coreutils, go
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namekubernetes-cli
Aliases
  • kubectl
  • kubernetes-cli@1.36
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Chocolatey95%

kubernetes-cli

choco install kubernetes-cli
  • normalized package name match
  • 匹配方式:Kubernetes Cli
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: kubernetes-cli from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','kubectx'
winget95%

Kubernetes.kubectl

winget install --id Kubernetes.kubectl -e
  • normalized package name match
  • 匹配方式:Kubernetes Cli
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: Kubernetes.kubectl from https://cdn.winget.microsoft.com/cache/source.msix
MacPorts94%

kubectl

sudo port install kubectl
  • installed executable or alias match
  • 匹配方式:Kubectl
MacPorts ports tree · api.github.com · MacPorts ports tree: sysutils/kubectl/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
Debian apt92%

kubectl 1.32.3+ds-2

Command-line tool for controlling Kubernetes clusters

https://kubernetes.io/

sudo apt install kubectl
  • Section: admin
  • Architecture: amd64
  • Source Package: kubernetes
  • 1 依赖
  • installed executable or alias match
  • 匹配方式:Kubectl
Debian stable package indexes · deb.debian.org · Debian stable package indexes: kubectl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix92%

kubectl

nix profile install nixpkgs#kubectl
  • installed executable or alias match
  • 匹配方式:Kubectl
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/ku/kubectl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk92%

kubectl 1.36.1-r0

Kubernetes - kubectl

https://kubernetes.io/

sudo apk add kubectl
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: kubernetes
  • 1 提供
  • installed executable or alias match
  • 匹配方式:Kubectl
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: kubectl from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
pacman92%

kubectl 1.36.1-1

A command line tool for communicating with a Kubernetes API server

https://kubernetes.io/

sudo pacman -S kubectl
  • License: Apache-2.0
  • Architecture: x86_64
  • 1 依赖
  • installed executable or alias match
  • 匹配方式:Kubectl
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: kubectl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
Scoop92%

main/kubectl

scoop install main/kubectl
  • installed executable or alias match
  • 匹配方式:Kubectl
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/kubectl.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated agent safety answer
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment