pgadmin

by Helm

Helm chartv0.1.12App 4.13.0

pgAdmin is a web based administration tool for the PostgreSQL database.

About this chart

Helm Chart for pgAdmin

Introduction

This Helm chart installs pgAdmin in a Kubernetes cluster.

Prerequisites

  • Kubernetes cluster 1.10+
  • Helm 2.8.0+
  • PV provisioner support in the underlying infrastructure.

Installation

Add Helm repository

helm repo add cetic https://cetic.github.io/helm-charts
helm repo update

Configure the chart

The following items can be set via --set flag during installation or configured by editing the values.yaml directly (need to download the chart first).

Configure the way how to expose pgAdmin service:

  • Ingress: The ingress controller must be installed in the Kubernetes cluster.
  • ClusterIP: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster.
  • NodePort: Exposes the service on each Node’s IP at a static port (the NodePort). You’ll be able to contact the NodePort service, from outside the cluster, by requesting NodeIP:NodePort.
  • LoadBalancer: Exposes the service externally using a cloud provider’s load balancer.

Configure the way how to persistent data:

  • Disable: The data does not survive the termination of a pod.
  • Persistent Volume Claim(default): A default StorageClass is needed in the Kubernetes cluster to dynamic provision the volumes. Specify another StorageClass in the storageClass or set existingClaim if you have already existing persistent volumes to use.

Install the chart

Install the pgAdmin helm chart with a release name my-release:

helm install --name my-release cetic/pgadmin

Uninstallation

To uninstall/delete the my-release deployment:

helm delete --purge my-release

Configuration

The following table lists the configurable parameters of the pgAdmin chart and the default values.

ParameterDescriptionDefault
Image
image.repositorypgAdmin Image namedpage/pgadmin4
image.tagpgAdmin Image tag4.13
image.pullPolicypgAdmin Image pull policyIfNotPresent
PgAdmin
pgadmin.usernamepgAdmin admin user[email protected]
pgadmin.passwordpgAdmin admin passwordadmin
pgadmin.existingPasswordSecretexisting secret containing pgAdmin admin passwordnil
pgadmin.tlspgAdmin admin TLS. the container will listen on port 80 for connections in plain text. If set to any value, the container will listen on port 443 for TLS connections. When TLS is enabled, a certificate and key must be provided. See secrets filefalse
pgadmin.scriptnamepgAdmin ScriptName Env, See https://www.pgadmin.org/docs/pgadmin4/latest/container_deployment.htmlnil
pgadmin.configpgAdmin configuration override(s) Env, config.py entries can be overriden by environment variables with the prefix: 'PGADMIN_CONFIG_'nil
Persistence
persistence.enabledEnable the data persistence or nottrue
persistence.existingClaimProvide an existing PersistentVolumeClaim, the value is evaluated as a templatenil
persistence.storageClassPVC Storage Class for PostgreSQL volumenil
persistence.accessModeThe access mode of the volumeReadWriteOnce
persistence.sizeThe size of the volume4Gi
Service
service.typeType of service for pgAdmin frontendLoadBalancer
service.portPort to expose service80
service.tlsportPort to expose service in tls, pgadmin.tlsmust be enabled443
service.loadBalancerIPLoadBalancerIP if service type is LoadBalancernil
service.loadBalancerSourceRangesAddress that are allowed when svc is LoadBalancer[]
service.annotationsService annotations{}
Ingress
ingress.enabledEnables Ingressfalse
ingress.annotationsIngress annotations{}
ingress.pathPath to access frontend/
ingress.hostsIngress hosts[]
ingress.tlsIngress TLS configuration[]
Servers
servers.enabledEnable the servers configuration. If enabled, server definitions found in servers.config will be loaded at launch time.true
servers.configServer definitionsSee the values.yaml
ReadinessProbe
readinessProbeRediness Probe settingsnil
LivenessProbe
livenessProbeLiveness Probe settingsnil
Resources
resourcesCPU/Memory resource requests/limits{}

Credits

Initially inspired from https://github.com/jjcollinge/pgadmin-chart, which is archived.

Contributing

Feel free to contribute by making a pull request.

Please read the official Contribution Guide from Helm for more information on how you can contribute to this Chart.

License

Apache License 2.0

Deploy pgadmin with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pgadmin on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartpgadmin is pinned at v0.1.12 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply