This repository has been archived on 2025-12-03. You can view files and clone it, but cannot push or open issues or pull requests.
2021-07-15 16:32:09 -05:00

31 lines
584 B
Markdown

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