-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
🔧 Add krew plugin manager for kubectl in README. (#200)
- Loading branch information
1 parent
fe517d7
commit 8497a7d
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Apps | ||
|
||
Install `krew` plugin manager for `kubectl` | ||
|
||
```bash | ||
brew install krew | ||
``` | ||
|
||
Update `.zshrc` file | ||
|
||
```bash | ||
export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" | ||
``` | ||
|
||
Install CloudNativePG plugin to manager postgres clusters | ||
|
||
```bash | ||
kubectl krew install cnpg | ||
``` | ||
|
||
Shell into ecran postgres cluster | ||
|
||
```bash | ||
kubectl cnpg psql ecran-cluster -n ecran | ||
``` | ||
|
||
## Additional Details | ||
|
||
### Krew Plugin Manage | ||
|
||
`krew` is a plugin manager for `kubectl`, the Kubernetes command-line tool. It allows you to easily discover, install, and manage kubectl plugins. | ||
|
||
### CloudNativePG Plugin | ||
|
||
The CloudNativePG plugin (`cnpg`) is used to manage PostgreSQL clusters in Kubernetes environments. It provides a set of custom resources and controllers to automate the deployment and management of PostgreSQL clusters. | ||
|
||
### Accessing the Ecran PostgreSQL Cluster | ||
|
||
The `kubectl cnpg psql` command provides direct access to the PostgreSQL shell of the specified cluster. This is useful for running queries, managing databases, or troubleshooting issues directly on the cluster. | ||
|
||
### Environment Variables | ||
|
||
Remember to source your `.zshrc` file or restart your terminal session after updating it with the new PATH: | ||
|