diff --git a/deployment/human-connection/README.md b/deployment/human-connection/README.md index f281a4617..d6a2dd989 100644 --- a/deployment/human-connection/README.md +++ b/deployment/human-connection/README.md @@ -18,7 +18,7 @@ environment variables in your deployed kubernetes pods. If you want to edit secrets, you have to `base64` encode them. See [kubernetes documentation](https://kubernetes.io/docs/concepts/configuration/secret/#creating-a-secret-manually). -```text +```bash # example how to base64 a string: $ echo -n 'admin' | base64 --wrap 0 YWRtaW4= @@ -29,7 +29,7 @@ your deployed kubernetes pods. ## Create a namespace -```text +```bash $ kubectl apply -f namespace-human-connection.yaml ``` @@ -47,7 +47,7 @@ persistent volumes once before you apply the configuration. ## Apply the configuration -```text +```bash # in folder deployment/ $ kubectl apply -f human-connection/ ``` diff --git a/deployment/legacy-migration/README.md b/deployment/legacy-migration/README.md index eeb613146..8a3870ab3 100644 --- a/deployment/legacy-migration/README.md +++ b/deployment/legacy-migration/README.md @@ -39,6 +39,7 @@ Bring the application into maintenance mode. Then temporarily delete backend and database deployments + ```bash $ kubectl --namespace=human-connection get deployments NAME READY UP-TO-DATE AVAILABLE AGE @@ -52,7 +53,8 @@ deployment.extensions "nitro-backend" deleted ``` Deploy one-time maintenance-worker pod: -``` + +```bash # in deployment/legacy-migration/ $ kubectl apply -f db-migration-worker.yaml pod/nitro-maintenance-worker created @@ -60,7 +62,7 @@ pod/nitro-maintenance-worker created Import legacy database and uploads: -```text +```bash $ kubectl --namespace=human-connection exec -it nitro-maintenance-worker bash $ import_legacy_db $ import_uploads @@ -68,7 +70,16 @@ $ exit ``` Delete the pod when you're done: -``` + +```bash $ kubectl --namespace=human-connection delete pod nitro-maintenance-worker ``` +Oh, and of course you have to get those deleted deployments back. One way of +doing it would be: + +```bash +# in folder deployment/ +$ kubectl apply -f human-connection/deployment-backend.yaml -f human-connection/deployment-neo4j.yaml +``` +