totomz / kube-dns-operator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

kube-dns-operator

Create a DnsRecord resource, and the operator will create a correspondent DNS record in your dns server

apiVersion: net.beekube.cloud/v1alpha1
kind: DnsRecord
metadata:
  name: www-blog-alpha
  namespace: ziotest
spec:
  # Create a record in AWS Route53
  Route53Records:
    awsSecrets:
      secretNamespace: ziotest 
      secretName: my-ideas-aws-dns
      accessKeyIDKey: access-key-id
      secretAccessKeyKey: secret-access-key
    zoneId: "<ZoneId>"
    # Any valid .Type, like CNAME, A, TXT
    type: "CNAME" 
    # The FQDN 
    name: "www-demo394.my-ideas.it"
    # The resource records (check the AWS docs! CNAME allows only 1 element)
    resourceRecords:
      - kubeapp.dc-pilotto.my-ideas.it
    comment: "This is cio"
    ttl: 300

Supported DNS

AWS Route53

Create a secret with an AIM user that have access to Route53

kubectl create secret generic my-ideas-aws-dns \
  --from-literal=secret-access-key="<secret key>" \
  --from-literal=access-key-id="<AKIAzzzzz>" \
  --namespace="default"

Development

operator-framework does not support (yet) go v1.18. The Makefile is updated to work with go 1.18, but you need to manually install Kustomize: cd bin && curl -s "https://raw.githubusercontent.com/kubernetes-sigs/kustomize/master/hack/install_kustomize.sh" | bash

About

License:MIT License


Languages

Language:Go 66.7%Language:Makefile 30.9%Language:Dockerfile 2.4%