CoreDNS configuration for Airship 1.3 10/1910/2
authorGeorg Kunz <georg.kunz@ericsson.com>
Mon, 4 Nov 2019 20:41:29 +0000 (20:41 +0000)
committerGeorg Kunz <georg.kunz@ericsson.com>
Mon, 4 Nov 2019 20:44:06 +0000 (20:44 +0000)
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 [new file with mode: 0644]
coredns/start-coredns.sh [new file with mode: 0755]
coredns/zones/arpa.in-addr.51.10 [new file with mode: 0644]
coredns/zones/vran.k2.ericsson.se [new file with mode: 0644]

diff --git a/coredns/Corefile b/coredns/Corefile
new file mode 100644 (file)
index 0000000..55912e1
--- /dev/null
@@ -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 (executable)
index 0000000..7376314
--- /dev/null
@@ -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 (file)
index 0000000..9db9352
--- /dev/null
@@ -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 (file)
index 0000000..54376eb
--- /dev/null
@@ -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.
+