Skip to content
Snippets Groups Projects
Commit be8ca8f9 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

more help on zalando

parent 94348c0a
No related branches found
No related tags found
1 merge request!43K8S deployments of release branche, and other updates
...@@ -46,7 +46,7 @@ kubectl exec -it $POD -- bash ...@@ -46,7 +46,7 @@ kubectl exec -it $POD -- bash
date date
``` ```
### Copy the db into zolando bitnami ### Copy the db into postgresql zalando
```shell ```shell
kubectl config use-context ippidb-dev 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 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 ...@@ -55,3 +55,14 @@ date
gzip -d -c ippisite/db-django-4.0.sql.gz | kubectl exec --stdin --tty $POD -- psql gzip -d -c ippisite/db-django-4.0.sql.gz | kubectl exec --stdin --tty $POD -- psql
date 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
```
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment