pgadmin4

by joaquinito2051

Helm chartv1.2.30App 4.22.0

pgAdmin4 is a web based administration tool for PostgreSQL database

About this chart

based on dpage/pgadmin4

pgAdmin 4

pgAdmin4 is the leading Open Source management tool for Postgres, the world’s most advanced Open Source database. pgAdmin4 is designed to meet the needs of both novice and experienced Postgres users alike, providing a powerful graphical interface that simplifies the creation, maintenance and use of database objects.

TL;DR;

$ helm repo add runix https://helm.runix.net/
$ helm install runix/pgadmin4

Introduction

This chart bootstraps a pgAdmin4 deployment on a Kubernetes cluster using the Helm package manager.

Install the Chart

To install the chart with the release name my-release:

$ helm install --name my-release runix/pgadmin4

The command deploys pgAdmin4 on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured durign installation.

Tip: List all releases using helm list

Uninstall the Chart

To uninstall/delete the my-release deployment:

helm delete --purge my-release

The command removes nearly all the Kubernetes components associated with the chart and deletes the release.

Configuration

ParameterDescriptionDefault
replicaCountNumber of pgadmin4 replicas1
image.repositoryDocker imagedpage/pgadmin4
image.tagDocker image tag"4.22"
image.pullPolicyDocker image pull policyIfNotPresent
service.typeService type (ClusterIP, NodePort or LoadBalancer)ClusterIP
service.annotationsService Annotations{}
service.portService port80
service.portNameName of the port on the servicehttp
service.targetPortInternal service porthttp
service.nodePortKubernetes service nodePort``
strategySpecifies the strategy used to replace old Pods by new ones{}
serverDefinitions.enabledEnables Server Definitionsfalse
serverDefinitions.serversPre-configured server parameters``
ingress.enabledEnables Ingressfalse
ingress.annotationsIngress annotations{}
ingress.hosts.hostIngress accepted hostnamenil
ingress.hosts.pathsIngress paths list[]
ingress.tlsIngress TLS configuration[]
extraConfigmapMountsAdditional configMap volume mounts for pgadmin4 pod[]
extraSecretMountsAdditional secret volume mounts for pgadmin4 pod[]
extraContainersSidecar containers to add to the pgadmin4 pod"[]"
extraInitContainersSidecar init containers to add to the pgadmin4 pod"[]"
env.emailpgAdmin4 default email. Needed chart reinstall for apply changes[email protected]
env.passwordpgAdmin4 default password. Needed chart reinstall for apply changesSuperSecret
env.pgpassfilePath to pgpasssfile (optional). Needed chart reinstall for apply changes``
persistentVolume.enabledIf true, pgAdmin4 will create a Persistent Volume Claimtrue
persistentVolume.accessModePersistent Volume access ModeReadWriteOnce
persistentVolume.sizePersistent Volume size10Gi
persistentVolume.storageClassPersistent Volume Storage Classunset
securityContextCustom security context for pgAdmin4 containers``
resourcesCPU/memory resource requests/limits{}
livenessProbeliveness probe initial delay and timeout``
readinessProbereadiness probe initial delay and timeout``
VolumePermissions.enabledEnables init container that changes volume permissions in the data directoryfalse
extraInitContainersInit containers to launch alongside the app[]
nodeSelectorNode labels for pod assignment{}
tolerationsNode tolerations for pod assignment[]
affinityNode affinity for pod assignment{}
podAnnotationsAnnotations for pod{}
existingSecretThe name of an existing secret containing the pgadmin4 default password.""
env.enhanced_cookie_protectionAllows pgAdmin4 to create session cookies based on IP address"False"
init.resourcesInit container CPU/memory resource requests/limits{}

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example:

$ helm install runix/pgadmin4 --name my-release \
  --set env.password=SuperSecret

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example:

$ helm install runix/pgadmin4 --name my-release -f values.yaml

Tip: You can use the default values.yaml and look on examples.

Deploy pgadmin4 with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has pgadmin4 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 chartpgadmin4 is pinned at v1.2.30 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