# Conditional forward zones, from the puppet openforwarder view.
# Upstreams: unkin authoritative 198.18.200.6, consul 198.18.19.14,
#   k8s 198.18.200.8 (in-cluster bind-externaldns VIP).
# k8s -> in-cluster bind-externaldns 198.18.200.8 for both the forward zone
#   k8s.syd1.au.unkin.net and the reverse zone 200.18.198.in-addr.arpa, which
#   external-dns now publishes to (see the external-dns migration PRs).
# (Zones that forwarded to 10.10.16.x were dropped; consul left as-is.)
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-unkin-net
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: unkin.net
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-main-unkin-net
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: main.unkin.net
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-consul
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: consul
  type: forward
  catalog: false
  forwarders:
    - 198.18.19.14
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-k8s-syd1-au-unkin-net
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: k8s.syd1.au.unkin.net
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.8
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-200-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 200.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    # Reverse zone for the k8s LB range, published by external-dns to the
    # in-cluster bind-externaldns alongside k8s.syd1.au.unkin.net.
    - 198.18.200.8
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-13-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 13.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-14-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 14.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-15-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 15.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-16-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 16.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-17-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 17.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-19-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 19.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-20-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 20.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-21-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 21.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-22-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 22.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-23-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 23.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-24-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 24.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-25-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 25.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-26-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 26.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-27-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 27.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-28-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 28.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
---
apiVersion: bind.unkin.net/v1alpha1
kind: BindZone
metadata:
  name: fwd-29-18-198-in-addr-arpa
  namespace: bind-internal
spec:
  clusterRef: bind-resolvers
  viewRef: openforwarder
  zoneName: 29.18.198.in-addr.arpa
  type: forward
  catalog: false
  forwarders:
    - 198.18.200.6
