Skip to content

Quick and easy setup of local docker, rancher, kubernetes environment to use as a sandbox

Notifications You must be signed in to change notification settings

BoLB23/local-k8s-rancher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local K8S Rancher environment

This repo creates a local CentOS 8 VM running Docker and k8s/Rancher UI to quickly have a local sandbox to use these tools for development.

Prerequisites

You will need access to the internet, plus Vagrant and VitrualBox (or your choice of hypervisor) installed on your host machine.

Vagrant Download: https://www.vagrantup.com/downloads VirtualBox Download: https://www.virtualbox.org/wiki/Downloads

Additionally you should clone this repo to your host machine.

git clone https://github.com/BoLB23/local-k8s-rancher.git

Usage

cd local-k8s-rancher
vagrant up

After several minutes your VM should spin up and the provision ansible playbook should run.

Once this is complete. SSH into your vagrant VM to ensure rancher and docker is up.

vagrant ssh

docker ps

kubectl get nodes
kubectl get ns

Log into the rancher UI (optional).

https://localhost:443/login

Contributing

Pull requests are welcome.

About

Quick and easy setup of local docker, rancher, kubernetes environment to use as a sandbox

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages