ADDED env Variable CONFIG_PATH for Kubernetes secret

This commit is contained in:
Sebastian Rojo
2021-07-15 16:14:23 -05:00
parent 458559d52c
commit 01993807a9
3 changed files with 82 additions and 3 deletions

29
examples/k8s/README.md Normal file
View File

@@ -0,0 +1,29 @@
Create config File
```
cp ../../config-example.json config-cloudflare-ddns-secret.js
```
Edit config.json (vim, nvim, nano... )
```
${EDITOR} config-cloudflare-ddns-secret.js
```
Create config file as Secret.
```
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
```
apply this secret
```
kubectl apply -f config-cloudflare-ddns-Secret.yaml
```
apply this Deployment
```
kubectl apply -f cloudflare-ddns-Deployment.yaml
```