apiVersion: v1
kind: ConfigMap
metadata:
  name: unbound-a-records-configmap
data:
  a-records: |
    # DeepStack Records
    local-data: "deepstack.${NETWORK_HOSTNAME_SUFFIX}. A ${CLUSTER_HOSTNETWORKINGIPADDRESS}"
    local-data-ptr: "${CLUSTER_HOSTNETWORKINGIPADDRESS} deepstack.${NETWORK_HOSTNAME_SUFFIX}."

    # Homebridge Records
    local-data: "homebridge.${NETWORK_HOSTNAME_SUFFIX}. A ${CLUSTER_HOSTNETWORKINGIPADDRESS}"
    local-data-ptr: "${CLUSTER_HOSTNETWORKINGIPADDRESS} homebridge.${NETWORK_HOSTNAME_SUFFIX}."

    # Pi-hole Records
    local-data: "pihole.${NETWORK_HOSTNAME_SUFFIX}. A ${CLUSTER_HOSTNETWORKINGIPADDRESS}"
    local-data-ptr: "${CLUSTER_HOSTNETWORKINGIPADDRESS} pihole.${NETWORK_HOSTNAME_SUFFIX}."

    # Portainer Records
    local-data: "portainer.${NETWORK_HOSTNAME_SUFFIX}. A ${CLUSTER_HOSTNETWORKINGIPADDRESS}"
    local-data-ptr: "${CLUSTER_HOSTNETWORKINGIPADDRESS} portainer.${NETWORK_HOSTNAME_SUFFIX}."

    # Grafana Records
    local-data: "grafana.${NETWORK_HOSTNAME_SUFFIX}. A ${CLUSTER_HOSTNETWORKINGIPADDRESS}"
    local-data-ptr: "${CLUSTER_HOSTNETWORKINGIPADDRESS} grafana.${NETWORK_HOSTNAME_SUFFIX}."

    # Prometheus Records
    local-data: "prometheus.${NETWORK_HOSTNAME_SUFFIX}. A ${CLUSTER_HOSTNETWORKINGIPADDRESS}"
    local-data-ptr: "${CLUSTER_HOSTNETWORKINGIPADDRESS} prometheus.${NETWORK_HOSTNAME_SUFFIX}."

    # Alert Manager Records
    local-data: "alertmanager.${NETWORK_HOSTNAME_SUFFIX}. A ${CLUSTER_HOSTNETWORKINGIPADDRESS}"
    local-data-ptr: "${CLUSTER_HOSTNETWORKINGIPADDRESS} alertmanager.${NETWORK_HOSTNAME_SUFFIX}."
