From 7711ae90af709d443939da6b0935a5588cbbd4d9 Mon Sep 17 00:00:00 2001 From: Mark Wagner Date: Tue, 3 Mar 2020 16:11:32 -0800 Subject: [PATCH 1/2] Update docs with kubernetes info and change from key to token --- README.md | 44 ++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 42 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94b6760..6bcdf3c 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,14 @@ Rather than using DNS to resolve the host, the CloudFlare API is queried for the ## Installation +### Gentoo + https://github.com/mark-wagner/portage/tree/master/net-dns/cfdc/cfdc-9999.ebuild Add =net-dns/cfdc-9999 \*\* to /etc/portage/package.keywords. Create a configuration file (default is /etc/cfdc.conf). The format is JSON and these are the required keys: -* api\_key - CloudFlare API Key https://www.cloudflare.com/a/account/my-account -> Global API Key -* email - Email address associated with the zone +* api\_token - cloudflare api token with Zone.Zone, Zone.DNS permissions * name - host name you want to update * zone - zone (domain) you want to update @@ -32,6 +33,45 @@ To have the script start at boot run `rc-update add cfdc default`. The provided If you changed the location of the log file update /etc/logrotate.d/cfdc. +### Kubernetes + +Create a json file cfdc.conf with keys desribed as above. + +``` +kubectl create secret generic cfdc --from-file cfdc.conf +``` + +Sample manifest: + +``` +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cfdc + labels: + app: cfdc +spec: + selector: + matchLabels: + app: cfdc + template: + metadata: + labels: + app: cfdc + spec: + containers: + - name: cfdc + image: marklanfearnet/cfdc:latest + volumeMounts: + - name: cfdc + mountPath: /etc/cfdc + readOnly: true + volumes: + - name: cfdc + secret: + secretName: cfdc +``` + ## License Distributed under the terms of the GNU General Public License v2 From 465e730132057307872f276b088be63920fb8212 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 22 May 2023 23:21:28 +0000 Subject: [PATCH 2/2] Bump requests from 2.23.0 to 2.31.0 Bumps [requests](https://github.com/psf/requests) from 2.23.0 to 2.31.0. - [Release notes](https://github.com/psf/requests/releases) - [Changelog](https://github.com/psf/requests/blob/main/HISTORY.md) - [Commits](https://github.com/psf/requests/compare/v2.23.0...v2.31.0) --- updated-dependencies: - dependency-name: requests dependency-type: direct:production ... Signed-off-by: dependabot[bot] --- requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/requirements.txt b/requirements.txt index b450057..2c24336 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -requests==2.23.0 +requests==2.31.0