All posts

Secure PostgreSQL Access in Kubernetes with Ingress and Pgcli

Pgcli is a fast, smart PostgreSQL client with autocomplete and syntax highlighting. Together, they solve a clear problem: secure, predictable data access over managed cluster endpoints. An ingress resource defines rules for routing external requests to internal services. This is done with HTTP or HTTPS mappings, TLS settings, and precise host paths. Engineers use ingress to avoid exposing services directly via NodePort or LoadBalancer, reducing attack surface and keeping configurations centrali

Free White Paper

Just-in-Time Access + VNC Secure Access: The Complete Guide

Architecture patterns, implementation strategies, and security best practices. Delivered to your inbox.

Free. No spam. Unsubscribe anytime.

Pgcli is a fast, smart PostgreSQL client with autocomplete and syntax highlighting. Together, they solve a clear problem: secure, predictable data access over managed cluster endpoints.

An ingress resource defines rules for routing external requests to internal services. This is done with HTTP or HTTPS mappings, TLS settings, and precise host paths. Engineers use ingress to avoid exposing services directly via NodePort or LoadBalancer, reducing attack surface and keeping configurations centralized.

Pgcli excels when paired with ingress-protected PostgreSQL services. With the right ingress configuration, you can map a domain—say, db.example.com—to your database pod securely. TLS termination happens at the ingress controller, while Pgcli handles the connection with rich interactive features. Autocomplete speeds up queries. Syntax highlighting prevents mistakes in complex commands. This combination improves both speed and safety when working with critical data in Kubernetes-hosted databases.

Continue reading? Get the full guide.

Just-in-Time Access + VNC Secure Access: Architecture Patterns & Best Practices

Free. No spam. Unsubscribe anytime.

To configure ingress resources for Pgcli:

  1. Deploy the ingress controller for your cluster, often NGINX or Traefik.
  2. Create an ingress manifest specifying host, path, and serviceName that points to your PostgreSQL service.
  3. Enable TLS with a valid certificate, using cert-manager or a provided secret.
  4. Update your Pgcli connection string to use the ingress host and secure port.

Ingress resources Pgcli workflows reduce network complexity. They replace ad-hoc forwarding with stable, documented endpoints. Pgcli then brings speed, error checking, and better readability to every query. The end result: you spend less time fighting your infrastructure and more time working with your data.

Configure ingress resources for your PostgreSQL cluster. Connect instantly with Pgcli. See it live in minutes at hoop.dev.

Get started

See hoop.dev in action

One gateway for every database, container, and AI agent. Deploy in minutes.

Get a demoMore posts