Giter Club home page Giter Club logo

kube-external-dns's Introduction

kube-external-dns

Thi is a Kubernetes service that watches (in all namespaces) for services created, updated, and deleted in the cluster and confiugres external DNS records in public DNS providers.

The service relies on the publicly reachable IPs created in supported clouds with the LoadBalancer Kubernetes service type.

To use add a few annotations in your service resource

metadata:
  name: test-service
  annotations:
    external.dns.koshk.in/provider: "cloudflare"
    external.dns.koshk.in/root-domain: "koshk.in"

By default new records will be created in the form of $service-name.$namespace.$root-domain, from the example above that would be test-service.default.koshk.in
It is also possible to override this behavior by specifying a custom sub-domain with the external.dns.koshk.in/sub-domain annotation

Then deploy it, run something similar with your own provider details

kubectl run kube-external-dns --image=arduima/kube-external-dns --env="CLOUDFLARE_EMAIL=$EMAIL" --env="CLOUDFLARE_KEY=$API_KEY"

Each provider will require its own credentials and will require different env variables

If you want to use multiple providers pass the credentials and use the appropriate annotation values from below

List of Providers

  • CloudFlare
    Requires: CLOUDFLARE_EMAIL and CLOUDFLARE_KEY
    Annotation: external.dns.koshk.in/provider: "cloudflare"
  • DNSimple Requires: DNSIMPLE_EMAIL and DNSIMPLE_TOKEN
    Annotation: external.dns.koshk.in/provider: "dnsimple"
  • Route53 Requires: AWS_REGION, AWS_ACCESS_KEY and AWS_SECRET_KEY
    Annotation: external.dns.koshk.in/provider: "route53"
  • DigitalOcean
    Requires: DO_PAT
    Annotation: external.dns.koshk.in/provider: "digitalocean"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.