MCPcopy Index your code
hub / github.com/estafette/estafette-cloudflare-dns

github.com/estafette/estafette-cloudflare-dns @v1.3.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.3.0 ↗ · + Follow
72 symbols 201 edges 7 files 20 documented · 28% updated 3y agov1.3.0 · 2022-09-16★ 384 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

estafette-cloudflare-dns

This small Kubernetes application configures dns and proxy settings in Cloudflare for any public service with the correct annotations

License

Why?

In order not to have to set dns records manually or from deployment scripts this application decouples that responsibility and moves it into the Kubernetes cluster itself.

Installation

Prepare using Helm:

brew install kubernetes-helm
kubectl -n kube-system create serviceaccount tiller
kubectl create clusterrolebinding tiller --clusterrole=cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller --wait

Then install or upgrade with Helm:

helm repo add estafette https://helm.estafette.io
helm upgrade --install estafette-cloudflare-dns --namespace estafette estafette/estafette-cloudflare-dns

Usage

Once it's running put the following annotations on a service of type LoadBalancer and deploy. The estafette-cloudflare-dns controller will watch changes to services and process those. Once approximately every 300 seconds it also scans all services as a safety net in case an event has been missed.

apiVersion: v1
kind: Service
metadata:
  name: myapplication
  namespace: mynamespace
  labels:
    app: myapplication
  annotations:
    estafette.io/cloudflare-dns: "true"
    estafette.io/cloudflare-proxy: "true"
    estafette.io/cloudflare-use-origin-record: "false"
    estafette.io/cloudflare-origin-record-hostname: ""
    estafette.io/cloudflare-hostnames: "mynamespace.mydomain.com"
spec:
  type: LoadBalancer
  ports:
  - name: http
    port: 80
    targetPort: http
    protocol: TCP
  selector:
    app: myapplication

Extension points exported contracts — how you extend this code

Core symbols most depended-on inside this repo

New
called by 30
cloudflare.go
UpsertDNSRecord
called by 13
cloudflare.go
GetZoneByDNSName
called by 10
cloudflare.go
getDNSRecordsByZoneAndName
called by 8
cloudflare.go
DeleteDNSRecord
called by 6
cloudflare.go
UpdateProxySetting
called by 6
cloudflare.go
Get
called by 6
restClient.go
getLastItemsFromSlice
called by 5
helpers.go

Shape

Function 31
Method 27
Struct 13
Interface 1

Languages

Go100%

Modules by API surface

main.go17 symbols
cloudflare.go17 symbols
restClient.go11 symbols
types.go9 symbols
helpers_test.go8 symbols
cloudflare_test.go8 symbols
helpers.go2 symbols

For agents

$ claude mcp add estafette-cloudflare-dns \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page