Skip to content

Commit

Permalink
🔧 Add krew plugin manager for kubectl in README. (#200)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregkonush authored Aug 25, 2024
1 parent fe517d7 commit 8497a7d
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions apps/README.md
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:

0 comments on commit 8497a7d

Please sign in to comment.