Giter Site home page Giter Site logo

kubestack-solo's Introduction

kubestack-solo

This repo contains a Packer configuration template that can be used to create a Kubernetes VMware image for local testing.

Build

packer build -var-file settings.json kubestack-solo.json

Start Kubestack Solo VM

$ /Applications/VMware\ Fusion.app/Contents/Library/vmrun \
  start output-vmware-iso/kubestack-solo.vmx

Kubestack Solo Login Screen

Configuring networking

By default the docker bridge IP is set to 10.200.10.1/24 and the Kubernetes service portal range is set to 10.200.20.1/24. These ranges will only be assible inside the VM. In order to reach pods and services from your local Mac, run the following command to add static routes:

Replace $vm-ip-address with the IP address of the VM running Kubestack Solo:

sudo route add -net 10.200.10.0 -netmask 255.255.255.0 -host $vm-ip-address
sudo route add -net 10.200.20.0 -netmask 255.255.255.0 -host $vm-ip-address

Configure kubectl

$ kubectl config set-cluster local --server=http://$vm-ip-address:8080
$ kubectl config set-context local --cluster=local
$ kubectl config use-context local

You now have a single node ready for use.

$ kubectl get nodes
NAME        LABELS    STATUS
127.0.0.1   <none>    Ready

Logging In

$ chmod 600 files/kubestack_id_rsa
$ ssh -i files/kubestack_id_rsa core@$vm-ip-address

kubestack-solo's People

Contributors

elsonrodriguez avatar kelseyhightower avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.