Prerequisites
- Ubuntu 16 running in VirtualBox
VirtualBox Preferences
In VirtualBox Preferences define Host-only adaptor (should already exist and default to the following)
- Ip: 192.168.56.1
- Netmask: 255.255.255.0
- DHCP: Enabled
Create K8Master Node
Create VM
Create a VM with the following:
...
Start VM and install Ubuntu Server 16
Networking Setup
Log into the VM and issue the following commands.
...
> ssh -p PORT test@localhost
Appendix - Virtual Box
Network Configurations
+-----------+-------------+-------------+----------------+----------------+
| | VM <-> Host | VM1 <-> VM2 | VM -> Internet | VM <- Internet |
+-----------+-------------+-------------+----------------+----------------+
| HostOnly | Yes | Yes | No | No |
| Internal | No | Yes | No | No |
| Bridged | Yes | Yes | Yes | Yes |
| NAT | No | No | Yes | Port forward |
| NATNet | No | Yes | Yes | Port forward |
+-----------+-------------+-------------+----------------+----------------+
Reference
Reference | URL |
---|---|
Kubernetes on Ubuntu | https://kubernetes.io/docs/getting-started-guides/ubuntu/ |
Install Kubernetes On Ubuntu | https://www.youtube.com/watch?v=UWg3ORRRF60 |
Building a Kubernetes Cluster in VirtualBox with Ubuntu | https://medium.com/@KevinHoffman/building-a-kubernetes-cluster-in-virtualbox-with-ubuntu-22cd338846dd |
Kubernetes cluster setup using virtual machines | https://www.profiq.com/kubernetes-cluster-setup-using-virtual-machines/ |
...