DNS Setup
Local network DNS records and resolution testing.
- On your local router create new DNS entries for each host
- For example, on a fortigate device navigate to Network > DNS Servers > DNS Zone > DNS Entries > Create New
- Add each:
| IP Address | Name |
|---|---|
| 192.168.1.200 | dev |
| 192.168.1.201 | lb-1 |
| 192.168.1.203 | master-1 |
| 192.168.1.206 | worker-1 |
| 192.168.1.208 | ansible-1 |
| 192.168.1.209 | dev-template |
SSH to the linked VM's
SSH to each of the VM's and keep their sessions open
Load balancer
- SSH to load balancer:
ssh dev@lb-1.internal.example.com - Edit the hostfile, changing the loopback and adding the cluster:
sudo vi /etc/hosts
127.0.1.1 lb-1
192.168.1.200 dev dev.internal.example.com
Master node
- SSH to master node:
ssh dev@master-1.internal.example.com - Edit the hostfile, changing the loopback and adding the cluster:
sudo vi /etc/hosts
127.0.1.1 master-1
192.168.1.200 dev dev.internal.example.com
Worker node
- SSH to worker node:
ssh dev@worker-1.internal.example.com - Edit the hostfile, changing the loopback and adding the cluster:
sudo vi /etc/hosts
127.0.1.1 worker-1
192.168.1.200 dev dev.internal.example.com
Ansible
- SSH to ansible:
ssh dev@ansible-1.internal.example.com - Edit the hostfile, changing the loopback and adding the cluster:
sudo vi /etc/hosts
127.0.1.1 ansible-1
192.168.1.200 dev dev.internal.example.com
192.168.1.201 lb-1 lb-1.internal.example.com
192.168.1.203 master-1 master-1.internal.example.com
192.168.1.206 worker-1 worker-1.internal.example.com