Skip to content

josanabr/ansible-k8s

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes in Virtual Machines

This repository provides a set of files that allows the deployment of a kubernetes cluster formed by VirtualBox vms. The information used to create these files was retrieved from this blog post written by Naresh L J (Infosys). However original post has some issues that were fixed. The fixed issues are commented here.

Software requirements

  • VirtualBox - 6.0.14r133895
  • Ansible - 2.9.1
  • Python - 3.7.5

Tests were executed under MacOS Mojave - 10.14.6.

Steps for k8s deployment

  • Retrieve git repository git clone https://github.com/josanabr/ansible-k8s
  • Visit directory cd ansible-k8s
  • Execute vagrant up

Test the k8s deployment

  • Go to k8s-master via ssh. vagrant ssh k8s-master
  • Check if nodes are up and running. kubectl get nodes
  • Visit the directory /vagrant/test. cd /vagrant/test
  • Deploy an example app (taken from here). kubectl apply -f deployment.yaml
  • Check that everything is working. kubectl get pods -A

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages