https://github.com/enterprisedb/kubectl-cnp
Plugin for kubectl to manage a Cloud Native PostgreSQL cluster in Kubernetes
https://github.com/enterprisedb/kubectl-cnp
kubectl-plugins kubernetes postgresql
Last synced: 12 months ago
JSON representation
Plugin for kubectl to manage a Cloud Native PostgreSQL cluster in Kubernetes
- Host: GitHub
- URL: https://github.com/enterprisedb/kubectl-cnp
- Owner: EnterpriseDB
- License: other
- Created: 2020-11-26T05:55:26.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2025-05-23T15:35:24.000Z (about 1 year ago)
- Last Synced: 2025-06-06T14:08:16.780Z (about 1 year ago)
- Topics: kubectl-plugins, kubernetes, postgresql
- Language: Shell
- Homepage:
- Size: 9.77 KB
- Stars: 9
- Watchers: 15
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Cloud Native PostgreSQL plugin for `kubectl`
Plugin for `kubectl` to manage a Cloud Native PostgreSQL
cluster in Kubernetes. The plugin works also with `oc` in
an OpenShift environment.
For details, please refer to Cloud Native PostgreSQL documentation.
## Mac OS and Linux install
You can install the plugin in your system with:
``` sh
curl -sSfL \
https://github.com/EnterpriseDB/kubectl-cnp/raw/main/install.sh | \
sudo sh -s -- -b /usr/local/bin
```
The plugin requires the Cloud Native PostgreSQL operator to be
installed in the Kubernetes/Openshift cluster.
## Windows install
To install the plugin on Windows go to the [releases
page](https://github.com/EnterpriseDB/kubectl-cnp/releases) and get the most
recent release for your Windows architecture.
For example, if you are using an `x86_64` build of Windows, you would download
the file named `kubectl-cnp__windows_x86_64.tar.gz`.
The release includes a checksum file, named
`kubectl-cnp--checksums.txt`, that can be used to validate the
integrity of the Kubectl binary.
To validate the file you can compare the output of the following command
against the relative line in the checksums file:
```
CertUtil -hashfile SHA256
```
Now you can extract the contents of the TAR archive using the following
command:
```
tar xvzf
```
You can copy the `kubectl-cnp.exe` file in any directory pointed by your `PATH`
environment variable, or prepend or append the Kubectl Cnp binary folder to
your `PATH` environment variable.
The directory where `kubectl.exe` is is usually a good choice for copying the
`kubectl-cnp.exe` file to.