A small set of utility container images meant to be dropped into Kubernetes CronJobs and Jobs for common ops tasks:
kubectlCopied! + AWS CLI toolbox image for cluster automationBoth images are published to GitHub Container Registry (GHCR).
The easiest way to see all available tags/versions is to open the package page:
On those pages you’ll typically find:
latest (moving tag)9d4d16a)1. postgres-awscli
Purpose: run database backups on a schedule (CronJob), and restores as an on-demand Job.
Typical capabilities (see README for the authoritative list):
pg_dump + psql (PostgreSQL client tools)aws-cliDocs: see the latest postgres-awscli README for
Variables and exact names can change - double check the README before copy/paste.
bashdocker run --rm \ -e PGHOST=localhost \ -e PGPORT=5432 \ -e PGDATABASE=mydb \ -e PGUSER=myuser \ -e PGPASSWORD=mypassword \ -e AWS_ACCESS_KEY_ID=xxx \ -e AWS_SECRET_ACCESS_KEY=yyy \ -e AWS_DEFAULT_REGION=eu-central-1 \ -e S3_BUCKET=my-backups \ -e S3_PREFIX=pg/mydb \ ghcr.io/kalpak44/postgres-awscli:latest
bashdocker run --rm \ -e MODE=restore \ -e PGHOST=localhost \ -e PGPORT=5432 \ -e PGDATABASE=mydb \ -e PGUSER=myuser \ -e PGPASSWORD=mypassword \ -e AWS_ACCESS_KEY_ID=xxx \ -e AWS_SECRET_ACCESS_KEY=yyy \ -e AWS_DEFAULT_REGION=eu-central-1 \ -e S3_BUCKET=my-backups \ -e RESTORE_S3_KEY=pg/mydb/mydb_YYYYMMDDThhmmssZ.sql.gz \ ghcr.io/kalpak44/postgres-awscli:latest
2. kubectl-awscli
Purpose: a tiny ops image to run Kubernetes + AWS automation inside a Job/CronJob, such as:
regcred)Docs: see the latest kubectl-awscli README for:
bashdocker run --rm ghcr.io/kalpak44/kubectl-awscli:latest aws --version docker run --rm ghcr.io/kalpak44/kubectl-awscli:latest kubectl version --client
Use a pinned image tag for repeatable runs, and check the README for the latest recommended pattern.
yamlcontainers: - name: ops image: ghcr.io/kalpak44/kubectl-awscli:latest command: - /bin/bash - -lc - | set -euo pipefail aws --version kubectl version --client # your script here
Technologies Used