Skip to content

Latest commit

 

History

History
92 lines (59 loc) · 2.07 KB

README.md

File metadata and controls

92 lines (59 loc) · 2.07 KB

Environment Kubernetes

Describe

  • Create environment Kubernetes;
  • Automatically create cluster;
  • Cluster Local (Your machine).

Requirements

  • Virtual Box
  • Vagrant
  • 2 CPUs
  • 6 GB memory RAM
  • 10 GB Disk

✨ Project explanation

  1. Install Docker
  2. Configuration Cgroup and create structure drivers
  3. Install Kubernetes
  4. Pull images in the Master
  5. Install Pod Network (Weave)

🚀 Running

  1. Git clone in your machine
host@host:~$ git clone https://github.com/aureliomalheiros/k8s-vagrant.git
  1. access the folder k8s-vagrant and write the comand following:

Create folder token

mkdir token 
vagrant up
  1. Finished install cluster Kubernetes access host master knode01
vagrant ssh knode01
sudo su
  1. 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:

kubernetes-pull-automate

  1. Administrator cluster in the local machine

Install kubectl in your machine.

Guide install kubectl

Access knode01 copy output of the file /root/.kube/config

Copy output

The output will be placed in your machine file ~/.kube/config

🛠 Tecnologies

ShellScript Docker Kubernetes VirtualBox Vagrant

📚 REFERENCE