Commit f875770a authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

add context to README.md

parent cd370882
Pipeline #83529 canceled with stages
in 5 minutes and 26 seconds
......@@ -21,6 +21,7 @@ kubectl config set-context ippidb-dev --cluster=k8sdev-01 --user=$K8S_USER@k8sde
kubectl config set-context ippidb-prod --cluster=k8sprod-02 --user=$K8S_USER@k8sprod-02 --namespace ippidb-prod
```
### Copy the media directory
```shell
kubectl config use-context ippidb-dev
POD=$(kubectl get po -lapp=web-deployment,app.kubernetes.io/instance=$(git branch --show) --output jsonpath='{.items[0].metadata.name}')
......@@ -28,8 +29,10 @@ echo $POD
date
kubectl cp ippisite/persistent/media/ $POD:/code/persistent/media --container=django # 50 minutes
date
```
### Copy the db into postgresql bitnami
```shell
kubectl config use-context ippidb-dev
POD=$(kubectl get po -lapp.kubernetes.io/name=postgresqlbitnami,app.kubernetes.io/instance=$(git branch --show) --output jsonpath='{.items[0].metadata.name}'); echo $POD
date
......@@ -38,8 +41,10 @@ kubectl cp ippisite/db-django-4.0.sql.gz $POD:/bitnami/postgresql/ # 1 minutes
# gzip -d -c /bitnami/postgresql/db-django-4.0.sql.gz | psql -U postgres
kubectl exec -it $POD -- bash
date
```
### Copy the db into zolando bitnami
```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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment