Running Kubernates locally on MacOS
Running Kubernates locally on MacOS

Running Kubernates locally on MacOS
Install Corectl
https://github.com/TheNewNormal/corectl.app/releases
corectl version
corectl run
To list the images
corectl list
# Output:
locally available images
- alpha channel
- 1262.0.0
List running CoreOS instances
corectl ps
Server:
Version: 0.7.18
Go Version: go1.7.3
Built: Wed Nov 09 15:43:38 WET 2016
OS/Arch: darwin/amd64
Pid: 34218
Uptime: 10 minutes ago
Activity:
Active VMs: 1
Total Memory: 1024
Total vCores: 1
UUID: 28A7D3A4-86A8-4A48-BF51-7F58073073C2
Name: 28A7D3A4-86A8-4A48-BF51-7F58073073C2
Version: 1262.0.0
Channel: alpha
vCPUs: 1
Memory (MB): 1024
Pid: 36590
Uptime: 4 minutes ago
Sees World: true
Network:
eth0: 192.168.64.2
Ping the instance via its IP
ping 192.168.64.2
PING 192.168.64.2 (192.168.64.2): 56 data bytes
64 bytes from 192.168.64.2: icmp_seq=0 ttl=64 time=0.241 ms
64 bytes from 192.168.64.2: icmp_seq=1 ttl=64 time=0.363 ms
64 bytes from 192.168.64.2: icmp_seq=2 ttl=64 time=0.450 ms
64 bytes from 192.168.64.2: icmp_seq=3 ttl=64 time=0.407 ms
SSH in to coreos
corectl ssh 28A7D3A4-86A8-4A48-BF51-7F58073073C2
# Output:
Last login: Thu Dec 29 15:56:18 UTC 2016 from 192.168.64.1 on pts/0
CoreOS stable (1262.0.0)
Update Strategy: No Reboots
core@28A7D3A4-86A8-4A48-BF51-7F58073073C2 ~ $
kube-solo:
node "k8solo-01" labeled
Creating kube-system namespace ...
Installing SkyDNS ...
replicationcontroller "kube-dns-v20" created
service "kube-dns" created
Installing Kubernetes Dashboard ...
service "kubernetes-dashboard" created
deployment "kubernetes-dashboard" created
Installing Helm Tiller service ...
service "tiller-deploy" created
Checking for latest Helm version...
Downloading latest v2.1.3 of 'helm' cli for macOS
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 11.0M 100 11.0M 0 0 989k 0 0:00:11 0:00:11 --:--:-- 839k
Installed latest v2.1.3 of 'helm' cli to ~/kube-solo/bin ...
Installing new version of Helm Tiller...
Creating /Users/sam/.helm
Creating /Users/sam/.helm/repository
Creating /Users/sam/.helm/repository/cache
Creating /Users/sam/.helm/repository/local
Creating /Users/sam/.helm/plugins
Creating /Users/sam/.helm/starters
Creating /Users/sam/.helm/repository/repositories.yaml
Creating /Users/sam/.helm/repository/local/index.yaml
$HELM_HOME has been configured at $HOME/.helm.
Tiller (the helm server side component) has been installed into your Kubernetes Cluster.
Happy Helming!
Helm is ready to sail ...
Downloading latest version of Workflow deis cli for macOS
Downloading deis-stable-darwin-amd64 From Google Cloud Storage...
deis is now available in your current directory.
To learn more about deis, execute:
$ ./deis --help
Installed latest deis cli to ~/kube-solo/bin ...
---------
Installation has finished, Kube Solo VM is up and running !!!
Assigned static IP to VM/node: 192.168.64.3
You can control this App via status bar icon...
---------
kubectl cluster-info:
Kubernetes master is running at http://192.168.64.3:8080
KubeDNS is running at http://192.168.64.3:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns
kubernetes-dashboard is running at http://192.168.64.3:8080/api/v1/proxy/namespaces/kube-system/services/kubernetes-dashboard
To further debug and diagnose cluster problems, use 'kubectl cluster-info dump'.
Cluster version:
Client version: v1.5.1
Server version: v1.5.1
List the nodes
kubectl get nodes:
NAME STATUS AGE
k8solo-01 Ready 38s
Also you can install Deis Workflow PaaS (https://deis.com) with ‘install_deis’ command …