Skip to content

harbur/ka

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 

Repository files navigation

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

About

ka - Launch Kubernetes Anywhere

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages