The pods were spinning up, but your database CLI was missing. Pgcli with a Helm chart fixes that in seconds. Fast deployments, no manual config, no wasted motion.
Pgcli is a popular command-line client for PostgreSQL with auto-completion and syntax highlighting. Running it inside Kubernetes lets you query and manage your database without leaving the cluster. A Helm chart makes the deployment repeatable, versioned, and portable.
Step 1: Prepare Kubernetes and Helm
You need a running Kubernetes cluster and Helm installed locally. Ensure kubectl can connect to your cluster and you have the right namespace ready.
Step 2: Create a Helm Chart for Pgcli
Define your Chart.yaml with metadata for the Pgcli service. In values.yaml, set container image references, resource limits, and environment variables for database credentials. Avoid hardcoding secrets; use Kubernetes Secrets and reference them in your chart.
Step 3: Write the Deployment Template
In templates/deployment.yaml, create a Deployment resource that runs the Pgcli container. Mount configuration files if needed. Use ConfigMaps for query scripts or CLI settings.