cf-dns-update

command module
v0.0.0-...-db1fe5d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 30, 2019 License: MIT Imports: 9 Imported by: 0

README

cf-dns-update

update Cloudflare DNS A & CNAME records

License Build

About

initContainer for deployments in my k8s kluster to update DNS records as deployments happen

  • A: update records to point to your current IP
    • sort existing records by age, deletes more than REPLICAS, updates oldest
  • CNAME: update records to point to CONTENT

Usage

Prerequisites
  • cloudflare
  • ipify.org
    • external ip address

Env vars to set:

RECORD=seankhliao.com::badger:CNAME:kluster.seankhliao.com
RECORD=seankhliao.com:noproxy:wg:CNAME:kluster.seankhliao.com
RECORD=seankhliao.com::kluster:A:1
RECORD = [zone] : [proxy] : [name] : [type] : [content / replicas]

X_AUTH_EMAIL = Email for cloudflare api
X_AUTH_KEY = Api key for cloudflare api
Run

after setting all the env vars

cf-dns-update

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL