macOS
brew install kubectl-cnpglocal Homebrew formula metadata
安装
brew install kubectl-cnpglocal Homebrew formula metadata
sudo apk add kubectl-cnpgAlpine Linux edge package indexes · kubectl-cnpg · 来源: dl-cdn.alpinelinux.org
nix profile install nixpkgs#kubectl-cnpgnixpkgs package indexes · pkgs/by-name/ku/kubectl-cnpg/package.nix · 来源: api.github.com
sudo zypper install kubectl-cnpgopenSUSE Tumbleweed package metadata · kubectl-cnpg · 来源: download.opensuse.org
概览
CloudNativePG plugin for kubectl
历史
kubectl-cnpg is the kubectl plugin shipped by the CloudNativePG project for managing PostgreSQL clusters on Kubernetes. The plugin is part of the main CloudNativePG repository rather than a separate utility repository.
The CloudNativePG GitHub repository was created on 2022-03-10. The project describes CloudNativePG as a platform for managing PostgreSQL databases in Kubernetes across the operational lifecycle, and its repository topics include `kubectl-plugin`, `operator`, `postgresql`, and high-availability concepts.
The kubectl plugin became one of the operator's user-facing control surfaces: the official plugin documentation covers installation scripts, Debian and RPM packages, AUR, Krew, Homebrew, supported architectures, completion, and command usage.
The plugin's adoption follows CloudNativePG adoption rather than an independent CLI culture. The package appears in Homebrew, APK, Nix, and zypper, and the official docs name Homebrew and Krew as supported install paths for workstation users.
The repository metadata observed on 2026-07-01 showed more than 8000 GitHub stars for CloudNativePG, which makes kubectl-cnpg a plugin attached to a prominent Kubernetes database operator rather than a tiny standalone addon.
After installation, users run commands as `kubectl cnpg COMMAND [ARGS...]`. The official documentation emphasizes management tasks such as generating installation manifests and interacting with CloudNativePG-managed database clusters.
The plugin uses the normal kubectl configuration path through `~/.kube/config`, so it fits existing Kubernetes authentication and context workflows rather than defining a separate credentials store.
kubectl-cnpg is interesting as a packaged operator companion: the binary is distributed across OS package systems even though its value is tied to a cluster-side controller. It shows how serious Kubernetes operators often grow their own kubectl plugin for operational ergonomics.
安全态势
infrastructure mutation or orchestration signal.
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/config可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
kubectl-cnpg | cli | 全局可执行文件 | |
kubectl_complete-cnpg | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/cloudnative-pg/cloudnative-pg
安装元数据
| 软件包键 | brew:kubectl-cnpg |
|---|---|
| 版本 | 1.30.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/kubectl-cnpg |
| 主页 | https://cloudnative-pg.io/ |
| 仓库 | https://github.com/cloudnative-pg/cloudnative-pg |
| 上游文档 | https://cloudnative-pg.io/docs/devel/kubectl-plugin |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/cloudnative-pg/cloudnative-pg.git |
| 最后更新 | 2026-06-29T18:38:45Z |
| Pulse | updated |
| 构建依赖 | 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 | kubectl-cnpg |
| 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 软件包链接分开显示。
kubectl-cnpg
nix profile install nixpkgs#kubectl-cnpgkubectl-cnpg 1.29.0-r2
kubectl plugin for cloudnative-pg
https://github.com/cloudnative-pg/cloudnative-pg
sudo apk add kubectl-cnpgkubectl-cnpg 1.29.1-1.1
Manage PostgreSQL clusters built using CloudNativePG
https://github.com/cloudnative-pg/cloudnative-pg
sudo zypper install kubectl-cnpgkubectl-cnpg-bash-completion 1.29.1-1.1
Bash Completion for kubectl-cnpg
https://github.com/cloudnative-pg/cloudnative-pg
sudo zypper install kubectl-cnpg-bash-completionkubectl-cnpg-fish-completion 1.29.1-1.1
Fish Completion for kubectl-cnpg
https://github.com/cloudnative-pg/cloudnative-pg
sudo zypper install kubectl-cnpg-fish-completionkubectl-cnpg-zsh-completion 1.29.1-1.1
Zsh Completion for kubectl-cnpg
https://github.com/cloudnative-pg/cloudnative-pg
sudo zypper install kubectl-cnpg-zsh-completion来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.