- Create environment Kubernetes;
- Automatically create cluster;
- Cluster Local (Your machine).
- Virtual Box
- Vagrant
- 2 CPUs
- 6 GB memory RAM
- 10 GB Disk
- Install Docker
- Configuration Cgroup and create structure drivers
- Install Kubernetes
- Pull images in the Master
- Install Pod Network (Weave)
- Git clone in your machine
host@host:~$ git clone https://github.com/aureliomalheiros/k8s-vagrant.git
- access the folder k8s-vagrant and write the comand following:
Create folder token
mkdir token
vagrant up
- Finished install cluster Kubernetes access host master knode01
vagrant ssh knode01
sudo su
- Wait for the state of the nodes to staty in ready
Verify the state of the nodes in the Master
kubectl get nodes
The output should be the same as below:
- Administrator cluster in the local machine
Install kubectl
in your machine.
Access
knode01
copy output of the file/root/.kube/config
The output will be placed in your machine file
~/.kube/config