summaryrefslogtreecommitdiffstats
path: root/kubernetes/contrib/dns-server-for-vhost-ingress-testing/README.md
diff options
context:
space:
mode:
authorLucjan Bryndza <l.bryndza@samsung.com>2020-02-06 15:20:24 +0100
committerLucjan Bryndza <l.bryndza@samsung.com>2020-02-17 10:00:50 +0100
commite604acd6b77fda1c4850333df04ce7881afeecb5 (patch)
tree9bbc93cc19d4af12b25d4aee48485d50f84dc957 /kubernetes/contrib/dns-server-for-vhost-ingress-testing/README.md
parent0f3e13456f6a311786d29e7a2a560070e3d96e81 (diff)
DNS test server for ingress controller
Testing ingress controller based on virtual hosts requires a lot of entries in the /etc/hosts. The better way is to create DNS server for testing purposes. Signed-off-by: Lucjan Bryndza <l.bryndza@samsung.com> Issue-ID: OOM-2289 Change-Id: I2ab104c7391e9634972931ac7e79bec5711d2b39 Signed-off-by: Lucjan Bryndza <l.bryndza@samsung.com>
Diffstat (limited to 'kubernetes/contrib/dns-server-for-vhost-ingress-testing/README.md')
-rw-r--r--kubernetes/contrib/dns-server-for-vhost-ingress-testing/README.md23
1 files changed, 23 insertions, 0 deletions
diff --git a/kubernetes/contrib/dns-server-for-vhost-ingress-testing/README.md b/kubernetes/contrib/dns-server-for-vhost-ingress-testing/README.md
new file mode 100644
index 0000000000..dced68d7c6
--- /dev/null
+++ b/kubernetes/contrib/dns-server-for-vhost-ingress-testing/README.md
@@ -0,0 +1,23 @@
+# Motivations
+Ingress controller implementation in the ONAP cluster is based on the virtual host routing.
+Testing ONAP cluster requires a lot of entries on the target machines in the /etc/hosts.
+Adding many entries into the configuration files on testing machines is quite problematic and error prone.
+The better wait is to create central DNS server with entries for all virtual host pointed to simpledemo.onap.org and add custom DNS server as a target DNS server for testing machines and/or as external DNS for kubernetes cluster.
+
+# How to deploy test DNS server:
+Run script ./deploy\_dns.sh
+
+# How to add DNS address on testing machines:
+See post deploy info
+
+# Test DNS inside cluster (optional)
+1. You can add the following entry after DNS deploy on running cluster at the end of cluster.yaml file (rke)
+~~~yaml
+dns:
+ provider: coredns
+ upstreamnameservers:
+ - <cluster_ip>:31555
+~~~
+2. You can edit coredns configuration with command:
+ kubectl -n kube-system edit configmap coredns
+