下载

安装

Setting up Kubernetes Solo Cluster on macOS

Reading ssh key from /Users/xixicat/.ssh/id_rsa.pub

/Users/xixicat/.ssh/id_rsa.pub found, updating configuration files ...

Set CoreOS Release Channel:
 1)  Alpha (may not always function properly)
 2)  Beta
 3)  Stable (recommended)

Select an option: 3


Please type VM's RAM size in GBs followed by [ENTER]:
[default is 3]: 3

Changing VM's RAM to 3GB...


Please type Data disk size in GBs followed by [ENTER]:
[default is 30]: 30

Creating 30GB sparse disk (QCow2)...
-
Created  Data disk


Starting VM ...

[WARN] unable to run "defaults read /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist" Shared_Net_Address ...
[WARN] ... assuming macOS default value (192.168.64.1)
[WARN] unable to run "defaults read /Library/Preferences/SystemConfiguration/com.apple.vmnet.plist" Shared_Net_Mask ...
[WARN] ... assuming macOS default value (255.255.255.0)
> booting k8solo-01 (1/1)
---> downloading and verifying stable/1068.9.0
32.27 MB / 32.27 MB [================================================] 100.00 %
---> SHA512 hash for coreos_production_pxe.vmlinuz OK
224.63 MB / 224.63 MB [==============================================] 100.00 %
---> SHA512 hash for coreos_production_pxe_image.cpio.gz OK
---> stable/1068.9.0 ready
---> 'k8solo-01' started successfuly with address 192.168.64.2 and PID 3336
---> 'k8solo-01' boot logs can be found at '/Users/xixicat/.coreos/running/90394897-5956-4F9D-AFC4-E274C45DAB31/log'
---> 'k8solo-01' console can be found at '/Users/xixicat/.coreos/running/90394897-5956-4F9D-AFC4-E274C45DAB31/tty'

Checking internet availablity on VM...
Yes, internet is available ...


Downloading latest version of helmc cli for macOS
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 34.4M  100 34.4M    0     0   756k      0  0:00:46  0:00:46 --:--:-- 1158k

Installed latest helmc cli to ~/kube-solo/bin ...

Downloading latest version of Deis Workflow 'deis' cli for macOS
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.4M  100 10.4M    0     0   663k      0  0:00:16  0:00:16 --:--:-- 1076k

Installed latest deis cli to ~/kube-solo/bin ...

Installing Kubernetes files on to VM...
2016-08-13 09:10:13.456792 I | uploading 'kube.tgz' to 'k8solo-01:/home/core/kube.tgz'
87.99 MB / 87.99 MB [================================================] 100.00 %
Files copied to VM...
Installing now ...
Done...
Waiting for etcd service to be ready on VM...
...


Downloading docker 1.10.3 client for macOS
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 10.0M  100 10.0M    0     0   907k      0  0:00:11  0:00:11 --:--:-- 1122k

Generating kubeconfig file ...
cluster "k8solo-01" set.
context "kube-solo" set.
switched to context "kube-solo".

Waiting for Kubernetes cluster to be ready. This can take a bit...
...

Waiting for Kubernetes node to be ready. This can take a bit...
-...

node "k8solo-01" labeled

Creating kube-system namespace ...

Installing SkyDNS ...
replicationcontroller "kube-dns-v17" created
service "kube-dns" created

Installing Kubernetes Dashboard ...
replicationcontroller "kubernetes-dashboard-v1.1.0" created
service "kubernetes-dashboard" created

Installing Kubedash ...
deployment "kubedash" created
service "kubedash" created

Installation has finished, Kube Solo VM is up and running !!!

Assigned static IP to VM/node: 192.168.64.2

You can control this App via status bar icon...
--------
kubectl cluster-info:
Kubernetes master is running at http://192.168.64.2:8080
KubeDNS is running at http://192.168.64.2:8080/api/v1/proxy/namespaces/kube-system/services/kube-dns
kubernetes-dashboard is running at http://192.168.64.2: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.3.4
Server version: v1.3.4

kubectl get nodes:
NAME        STATUS    AGE
k8solo-01   Ready     12s

Also you can install Deis Workflow PaaS (https://deis.com) with 'install_deis' command ...

docs


codecraft
11.9k 声望2k 粉丝

当一个代码的工匠回首往事时,不因虚度年华而悔恨,也不因碌碌无为而羞愧,这样,当他老的时候,可以很自豪告诉世人,我曾经将代码注入生命去打造互联网的浪潮之巅,那是个很疯狂的时代,我在一波波的浪潮上留下...