Fix README

This commit is contained in:
Robert Schäfer 2019-02-05 17:27:59 +01:00
parent 8c6bc72bd2
commit 99262a0d4d
2 changed files with 11 additions and 11 deletions

View File

@ -101,16 +101,16 @@ Switch to the namespace `staging` in your kubernetes dashboard.
### Prepare migration of Human Connection legacy server
Create a configmap with the specific connection data of your legacy server:
```sh
$ kubectl create configmap db-migration-worker \
--namespace=staging \
--from-literal=SSH_USERNAME=someuser \
--from-literal=SSH_HOST=yourhost \
--from-literal=MONGODB_USERNAME=hc-api \
--from-literal=MONGODB_PASSWORD=secretpassword \
--from-literal=MONGODB_AUTH_DB=hc_api \
--from-literal=MONGODB_DATABASE=hc_api \
$ kubectl create configmap db-migration-worker \
--namespace=staging \
--from-literal=SSH_USERNAME=someuser \
--from-literal=SSH_HOST=yourhost \
--from-literal=MONGODB_USERNAME=hc-api \
--from-literal=MONGODB_PASSWORD=secretpassword \
--from-literal=MONGODB_AUTH_DB=hc_api \
--from-literal=MONGODB_DATABASE=hc_api \
--from-literal=UPLOADS_DIRECTORY=/var/www/api/uploads \
--from-literal=NEO4J_URI= \
--from-literal=NEO4J_URI=bolt://neo4j:7687
```
Create a secret with your public and private ssh keys:

View File

@ -17,7 +17,8 @@ spec:
name: nitro-web
spec:
containers:
- env:
- name: web
env:
- name: COMMIT
value: <WEBAPP_COMMIT>
- name: HOST
@ -39,7 +40,6 @@ spec:
key: JWT_SECRET
optional: false
image: humanconnection/nitro-web:latest
name: web
ports:
- containerPort: 3000
resources: {}