From 89207fb943c8cd662a3b08f6578619f085a40eab Mon Sep 17 00:00:00 2001 From: Georg Kunz Date: Mon, 4 Nov 2019 20:41:29 +0000 Subject: [PATCH] CoreDNS configuration for Airship 1.3 Newer versions of Airship require specific hostnames to be registered in DNS. This adds the configuration files for a coredns deployment in the Ericsson lab. Change-Id: Id14c160db542d51ea6962ffe2198714fdeb9238f --- coredns/Corefile | 20 ++++++++++++++++++++ coredns/start-coredns.sh | 8 ++++++++ coredns/zones/arpa.in-addr.51.10 | 8 ++++++++ coredns/zones/vran.k2.ericsson.se | 31 +++++++++++++++++++++++++++++++ 4 files changed, 67 insertions(+) create mode 100644 coredns/Corefile create mode 100755 coredns/start-coredns.sh create mode 100644 coredns/zones/arpa.in-addr.51.10 create mode 100644 coredns/zones/vran.k2.ericsson.se diff --git a/coredns/Corefile b/coredns/Corefile new file mode 100644 index 0000000..55912e1 --- /dev/null +++ b/coredns/Corefile @@ -0,0 +1,20 @@ +vran.k2.ericsson.se { + file /etc/coredns/zones/vran.k2.ericsson.se + loadbalance + errors stdout + log +} +51.10.in-addr.arpa { + file /etc/coredns/zones/arpa.in-addr.51.10 + loadbalance + errors stdout + log +} +. { + proxy . 10.64.73.100 + loadbalance + cache 60 + errors stdout + log +} + diff --git a/coredns/start-coredns.sh b/coredns/start-coredns.sh new file mode 100755 index 0000000..7376314 --- /dev/null +++ b/coredns/start-coredns.sh @@ -0,0 +1,8 @@ +#!/bin/bash +docker run \ + --detach \ + --restart=always \ + --name coredns \ + --network=host \ + --volume /opt/akraino/ovs-dpdk-unicycle/coredns:/etc/coredns \ + coredns/coredns:1.3.1 -conf /etc/coredns/Corefile diff --git a/coredns/zones/arpa.in-addr.51.10 b/coredns/zones/arpa.in-addr.51.10 new file mode 100644 index 0000000..9db9352 --- /dev/null +++ b/coredns/zones/arpa.in-addr.51.10 @@ -0,0 +1,8 @@ +$ORIGIN 51.10.in-addr.arpa. +51.10.in-addr.arpa. IN SOA @ root 2018060315 3h 15m 1w 1d + +233.34 IN PTR aknode23.vran.k2.ericsson.se. +232.34 IN PTR aknode25.vran.k2.ericsson.se. +231.34 IN PTR aknode27.vran.k2.ericsson.se. +230.34 IN PTR aknode29.vran.k2.ericsson.se. +229.34 IN PTR aknode31.vran.k2.ericsson.se. diff --git a/coredns/zones/vran.k2.ericsson.se b/coredns/zones/vran.k2.ericsson.se new file mode 100644 index 0000000..54376eb --- /dev/null +++ b/coredns/zones/vran.k2.ericsson.se @@ -0,0 +1,31 @@ +$ORIGIN vran.k2.ericsson.se. +@ IN SOA vran.k2.ericsson.se. root 2018060315 3h 15m 1w 1d + +aknode23 IN A 10.51.34.233 +aknode25 IN A 10.51.34.232 +aknode27 IN A 10.51.34.231 +aknode29 IN A 10.51.34.230 +aknode31 IN A 10.51.34.229 + +maas-vip IN A 10.51.34.48 +ingress-vip IN A 10.51.34.49 + +maas-sw IN CNAME maas-vip.vran.k2.ericsson.se. +drydock-sw IN CNAME maas-vip.vran.k2.ericsson.se. +cloudformation-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +compute-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +dashboard-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +grafana-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +iam-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +identity-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +image-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +kibana-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +nagios-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +network-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +nova-novncproxy-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +object-store-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +orchestration-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +placement-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +shipyard-sw IN CNAME ingress-vip.vran.k2.ericsson.se. +volume-sw IN CNAME ingress-vip.vran.k2.ericsson.se. + -- 2.16.6