pg-repack-scheduler

by Delivery Hero

Helm chartv1.2.0App 1.0Verified publisher

For running [pg_repack](https://github.com/reorg/pg_repack) as a `Job` or `CronJob`. By default the `CronJob` is disabled but a new `Job` can be created adhoc like this: ```console kubectl create job pg-repack --from=cronjob/pg-repack-scheduler ```

About this chart

pg-repack-scheduler

For running pg_repack as a Job or CronJob. By default the CronJob is disabled but a new Job can be created adhoc like this:

kubectl create job pg-repack --from=cronjob/pg-repack-scheduler

Homepage: https://github.com/deliveryhero/helm-charts

How to install this chart

A simple install with default values, latest chart version and generated name:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/pg-repack-scheduler

To install a specific version of this chart:

helm install --generate-name oci://ghcr.io/deliveryhero/helm-charts/pg-repack-scheduler --version 1.2

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

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/pg-repack-scheduler

To install with some set values:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/pg-repack-scheduler --set values_key1=value1 --set values_key2=value2

To install with custom values file:

helm install my-release oci://ghcr.io/deliveryhero/helm-charts/pg-repack-scheduler -f values.yaml

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}
db_settings.databasestring"my-db"
db_settings.hoststring"my-db-host.domain.com"
db_settings.passwordstring"CHANGE_ME"
db_settings.userstring"postgres"
environmentobject{}Any environment variables
fullnameOverridestring""
image.pullPolicystring"IfNotPresent"
image.repositorystring"maxrocketinternet/pg-repack-scheduler"
image.tagstring"0.1"
imagePullSecretslist[]
nameOverridestring""
nodeSelectorobject{}
pg_repack_run_settings.cleanupstring"true"
pg_repack_run_settings.detailed_loggingstring"true"
pg_repack_run_settings.install_maint_objectsstring"true"
pg_repack_run_settings.objectlist_sqlstring`"select schemaname
pg_repack_run_settings.objectlisttypestring"query"
pg_repack_run_settings.parallel_jobint4
pg_repack_run_settings.typestring"T"
podLabelsobject{}
resources.limits.cpustring"500m"
resources.limits.memorystring"128Mi"
resources.requests.cpustring"10m"
resources.requests.memorystring"128Mi"
scheduleobject{"hour":"04","minute":"00","suspend":true}Cron schedule of the downscale job
schedule.hourstring"04"Cron schedule hour of the downscale job
schedule.minutestring"00"Cron schedule minute of the downscale job
schedule.suspendbooltrueWhether to suspend (disable) the cronjob
serviceAccountNamestring""Name of an existing ServiceAccount for the job pods. Uses the namespace default when empty
tolerationslist[]

Maintainers

NameEmailUrl
max-rocket-internethttps://github.com/max-rocket-internet

Chart source and versions

Chart source: github.com/deliveryhero/helm-charts/pg-repack-scheduler

Older chart versions: github.com/deliveryhero/helm-charts/pkgs/container/helm-charts/pg-repack-scheduler

Deploy pg-repack-scheduler with OpenTenant

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