From be8ca8f983104215db2222c29ea109fd943d1654 Mon Sep 17 00:00:00 2001 From: Bryan Brancotte <bryan.brancotte@pasteur.fr> Date: Tue, 21 Jun 2022 16:09:26 +0200 Subject: [PATCH] more help on zalando --- README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 34e86b03..6f3434cc 100644 --- a/README.md +++ b/README.md @@ -46,7 +46,7 @@ kubectl exec -it $POD -- bash date ``` -### Copy the db into zolando bitnami +### Copy the db into postgresql zalando ```shell kubectl config use-context ippidb-dev POD=$(kubectl get po -lapplication=spilo,cluster-name=$(git branch --show)-postgresql --output jsonpath='{.items[0].metadata.name}'); echo $POD @@ -55,3 +55,14 @@ date gzip -d -c ippisite/db-django-4.0.sql.gz | kubectl exec --stdin --tty $POD -- psql date ``` +ou +```shell +kubectl config use-context ippidb-dev +POD=$(kubectl get po -lapplication=spilo,cluster-name=$(git branch --show)-postgresql --output jsonpath='{.items[0].metadata.name}'); echo $POD +date +kubectl cp ippisite/db.sql.gz $POD:/home/postgres/pgdata/tmp/ # 1 minutes +# once in the pod run +# gzip -d -c /home/postgres/pgdata/tmp/db.sql.gz | psql +date +kubectl exec -it $POD -- bash +``` -- GitLab