PowerDNS

# NOTE: This file serves as an example only!
# It demonstrates a subset of the API features which are available and
# is NOT FIT FOR PRODUCTIVE USE. You need to adapt them to your
# specific environment, needs and scale.
# DO NOT DEPLOY THIS FILE WITH THE EXPECTATION THAT YOU WILL GET A
# YAOOK DEPLOYMENT FIT FOR ANY USE EXCEPT LOOKING AT IT.
##
apiVersion: v1
kind: Secret
metadata:
  name: powerdns-api-key
data:
  apikey: SGVsbG9Xb3JsZCE=
---
apiVersion: infra.yaook.cloud/v1
kind: PowerDNSService
metadata:
  name: powerdns
spec:
  database:
    replicas: 1
    timeoutClient: 300
    proxy:
      replicas: 1
    backup:
      schedule: "0 * * * *"
  issuerRef:
    name: ca-issuer
  targetRelease: "4.9"
  replicas: 1
  subnetCidr: "172.30.99.0/24" # replace with the CIDR of your cluster
  # Optionally, a static external IP can be set for the DNS
  # Service on port 53. Note that this only works if the cluster supports external
  # load balancing.
  loadBalancerIP: "185.128.119.176"
  apiKeySecret:
    secretName: powerdns-api-key
    key: apikey
  powerdnsConfig:
    # configure PowerDNS as primary authoritative server
    primary: "yes"
    secondary: "no"