BETTER docs

This commit is contained in:
Sebastian Rojo 2021-07-15 16:26:47 -05:00
parent f7d2e7dc00
commit 96527aaab2

View File

@ -2,25 +2,25 @@
Create config File Create config File
``` bash ``` bash
cp ../../config-example.json config-cloudflare-ddns-secret.js cp ../../config-example.json config.js
``` ```
Edit config.json (vim, nvim, nano... ) Edit config.json (vim, nvim, nano... )
``` bash ``` bash
${EDITOR} config-cloudflare-ddns-secret.js ${EDITOR} config.js
``` ```
Create config file as Secret. Create config file as Secret.
``` bash ``` bash
kubectl create secret generic config-cloudflare-ddns --from-file=config-cloudflare-ddns-secret.js --dry-run=client -oyaml -n ddns > config-cloudflare-ddns-Secret.yaml kubectl create secret generic config-cloudflare-ddns --from-file=config.js --dry-run=client -oyaml -n ddns > config-cloudflare-ddns-Secret.yaml
``` ```
apply this secret apply this secret
``` bash ``` bash
kubectl apply -f config-cloudflare-ddns-Secret.yaml kubectl apply -f config-cloudflare-ddns-Secret.yaml
rm config-cloudflare-ddns-secret.js # recomended Just keep de secret on Kubernetes Cluster rm config.js # recomended Just keep de secret on Kubernetes Cluster
``` ```
apply this Deployment apply this Deployment