凭据访问
Reads kubeconfig, exec credentials, cluster tokens, and namespace context.
代理安全
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.
安装
brew install kubernetes-clilocal Homebrew formula metadata
sudo port install kubectlMacPorts ports tree · sysutils/kubectl/Portfile · 来源: api.github.com
sudo apk add kubectlAlpine Linux edge package indexes · kubectl · 来源: dl-cdn.alpinelinux.org
sudo apt install kubectlDebian stable package indexes · kubectl · 来源: deb.debian.org
nix profile install nixpkgs#kubectlnixpkgs package indexes · pkgs/by-name/ku/kubectl/package.nix · 来源: api.github.com
sudo pacman -S kubectlArch Linux sync databases · kubectl · 来源: geo.mirror.pkgbuild.com
choco install kubernetes-cliChocolatey community package catalog · kubernetes-cli · 来源: community.chocolatey.org
winget install --id Kubernetes.kubectl -eWindows Package Manager source index · Kubernetes.kubectl · 来源: cdn.winget.microsoft.com
scoop install main/kubectlScoop official bucket manifest trees · bucket/kubectl.json · 来源: api.github.com
概览
Kubernetes command-line interface
历史
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.
安全态势
cluster orchestration infrastructure.
orange 风险 · 高 置信度 · infrastructure
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
~/.kube/configCredential-bearing paths to review before unattended agent runs.
~/.kube/config可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
kubectl | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 构建依赖 | bash, coreutils, go |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | kubernetes-cli |
| Aliases |
|
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
kubernetes-cli
choco install kubernetes-cliKubernetes.kubectl
winget install --id Kubernetes.kubectl -ekubectl
sudo port install kubectlkubectl 1.32.3+ds-2
Command-line tool for controlling Kubernetes clusters
sudo apt install kubectlkubectl
nix profile install nixpkgs#kubectlkubectl 1.36.1-r0
Kubernetes - kubectl
sudo apk add kubectlkubectl 1.36.1-1
A command line tool for communicating with a Kubernetes API server
sudo pacman -S kubectlmain/kubectl
scoop install main/kubectl来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.