mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
Fine tuning documentation
This commit is contained in:
parent
86c0307ddb
commit
c350fb37a9
@ -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/
|
||||
```
|
||||
|
||||
@ -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
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user