Posts in 2020

  • Get tls certificate and key from a kubernetes secret

    Thursday, August 06, 2020 in Kubernetes

    My use case is to deploy a wildcard certificate that was previously handled by an on my legacy lxd containers. Since moving to kubernetes parts of my services I have been using cert-manager to issue letsencrypt certificates. Since I am not …

    Read more

  • Dump and restore a postgresql database

    Thursday, June 25, 2020 in Kubernetes

    Dumping Assuming we are working with a postgresql statefulset, our namespace is named miniflux and our master pod is named db-postgresql-0, trying to dump a database named miniflux: export POSTGRES_PASSWORD=$(kubectl get secret --namespace miniflux …

    Read more