Giter Club home page Giter Club logo

ka's Introduction

ka - Kubernetes Anywhere

Launch Kubernetes in Docker in one ka up command.

➜  ~ ka up
Starting Weave Network.... [PASS]
Starting Kubernetes....... [PASS]
Setup Kubernetes Addons... [PASS]
Starting SOCKS proxy...... [PASS]
Configure Kube client..... [PASS]
➜  ~ kubectl cluster-info
Kubernetes master is running at http://localhost:8080
KubeDNS is running at http://localhost:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns

asciicast

It works with Docker for Mac and is blazzing fast.

This script automates the process described here

Prerequisites

You'll need Docker and Weave Net to bootstrap Kubernetes using this script. This works best using Docker for Mac.

sudo curl -L git.io/weave -o /usr/local/bin/weave
sudo chmod +x /usr/local/bin/weave
brew install kubernetes-cli

Process

The script will check and launch Weave Net for you, Kubernetes as a single-node, Add kube-system namespace and DNS Addon, launch a SOCKS proxy to get Pod and Service IPs connectivity and configure your kubectl client kubernetes-anywhere context and set it as default.

After launching the script you simply use the kubectl to manage your cluster from your machine.

Configure Proxy

ka launches a SOCKS proxy automatically that you can use to get visibility of the Pod and Service IPs.

To use it simply add the following proxy.pac to your Network configuration:

function FindProxyForURL(url, host) {
    PROXY = "SOCKS 127.0.0.1:1080"

    // Kubernetes via Proxy
    if (isInNet(host, "10.0.0.0", "255.0.0.0")) {
        return PROXY;
    }

    // Everything else directly!
    return "DIRECT";
}

The configuration is stored here you can reference the URL directly.

Inspired by

ka's People

Contributors

dkapanidis avatar spiddy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ka's Issues

Add cleaning command

It would be nice to have some way to remove all the pods and services running.

Do you think we could add it?

My proposal: ka nuke 😁

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.