Merge "[DMAAP] DMaaP ServiceMesh compatibility"
[oom.git] / kubernetes / contrib / dns-server-for-vhost-ingress-testing / README.md
1 #  Motivations
2 Ingress controller implementation in the ONAP cluster is based on the virtual host routing.
3 Testing ONAP cluster requires a lot of entries on the target machines in the /etc/hosts.
4 Adding many entries into the configuration files on testing machines is quite problematic and error prone.
5 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.
6
7 # How to deploy test DNS server:
8 Run script ./deploy\_dns.sh
9
10 #  How to add DNS address on testing machines:
11 See post deploy info
12
13 # Test DNS inside cluster (optional)
14 1. You can add the following entry after DNS deploy on running cluster at the end of cluster.yaml file (rke)
15 ~~~yaml
16 dns:
17     provider: coredns
18     upstreamnameservers:
19         - <cluster_ip>:31555
20 ~~~
21 2. You can edit coredns configuration with command:
22         kubectl -n kube-system edit configmap coredns
23