fluxcd: node red
This commit is contained in:
+15
-13
@@ -1,20 +1,22 @@
|
||||
# node-red
|
||||
|
||||
**Deploy app:**
|
||||
|
||||
```bash {cwd=../../}
|
||||
./services/node-red/ops-scripts/apply-app.sh
|
||||
```
|
||||
|
||||
**Deploy Infra:**
|
||||
|
||||
```bash {cwd=../../}
|
||||
./services/node-red/ops-scripts/apply-infra.sh
|
||||
```
|
||||
|
||||
Create password to add to node-red settings file.
|
||||
|
||||
``` bash
|
||||
#npm install bcryptjs
|
||||
node -e "console.log(require('bcryptjs').hashSync(process.argv[1], 8));" YOUR-PASSWORD
|
||||
```
|
||||
|
||||
## Setup
|
||||
|
||||
Using flux for reconciliation.
|
||||
|
||||
``` bash
|
||||
./ops-scripts/apply-flux.sh
|
||||
```
|
||||
|
||||
**Encrypt secrets:**
|
||||
|
||||
``` bash
|
||||
sops -e deploy/app/limbomox-ssh-secret.dec.yaml > deploy/app/limbomox-ssh-secret.yaml
|
||||
sops -e deploy/app/node-red-settings-secret.dec.yaml > deploy/app/node-red-settings-secret.yaml
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user