资讯专栏INFORMATION COLUMN

mac搭建k8s环境

IamDLY / 2838人阅读

摘要:下载安装

下载

kube-solo-osx

corectl.app

安装
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

Zero to Kubernetes Dev Environment on OS X

文章版权归作者所有,未经允许请勿转载,若此文章存在违规行为,您可以联系管理员删除。

转载请注明本文地址:https://www.ucloud.cn/yun/32501.html

相关文章

  • 带着问题学 Kubernetes 基本单元 Pod

    摘要:后面会涉及以配置文件进行部署。的调度完成,被分配到指定上。这是的一种最终状态。图相较而言,除了提供的基本功能,还支持声明式的更新和回滚。共享数据存储的问题主要分为数据临时存储与持久性存储。 带着问题学 Kubernetes 基本单元 Pod 摘要:本文属于原创,欢迎转载,转载请保留出处:https://github.com/jasonGeng88/blog 文章一:带着问题学 Kube...

    pcChao 评论0 收藏0
  • 带着问题学 Kubernetes 基本单元 Pod

    摘要:后面会涉及以配置文件进行部署。的调度完成,被分配到指定上。这是的一种最终状态。图相较而言,除了提供的基本功能,还支持声明式的更新和回滚。共享数据存储的问题主要分为数据临时存储与持久性存储。 带着问题学 Kubernetes 基本单元 Pod 摘要:本文属于原创,欢迎转载,转载请保留出处:https://github.com/jasonGeng88/blog 文章一:带着问题学 Kube...

    frontoldman 评论0 收藏0
  • 利用K8S技术栈打造个人私有云(连载之:K8S集群搭建

    摘要:最近被业务折腾的死去活来,实在没时间发帖,花了好多个晚上才写好这篇帖子,后续会加油的利用技术栈打造个人私有云系列文章目录利用技术栈打造个人私有云连载之初章利用技术栈打造个人私有云连载之集群搭建利用技术栈打造个人私有云连载之环境理解和练手利用 showImg(https://segmentfault.com/img/remote/1460000013077799); 最近被业务折腾的死...

    Ryan_Li 评论0 收藏0
  • 利用K8S技术栈打造个人私有云(连载之:K8S集群搭建

    摘要:最近被业务折腾的死去活来,实在没时间发帖,花了好多个晚上才写好这篇帖子,后续会加油的利用技术栈打造个人私有云系列文章目录利用技术栈打造个人私有云连载之初章利用技术栈打造个人私有云连载之集群搭建利用技术栈打造个人私有云连载之环境理解和练手利用 showImg(https://segmentfault.com/img/remote/1460000013077799); 最近被业务折腾的死...

    邱勇 评论0 收藏0
  • 利用K8S技术栈打造个人私有云(连载之:K8S环境理解和练手)

    摘要:常见的和等都是属于某一个的默认是,而等则不属于任何。其实其的命令和上面都差不多,这里不一一列出了创建查看启动情况是一个定义了一组的策略的抽象,可以理解为抽象到用户层的一个宏观服务。其实这个概念在集群里也有,可以参照理解。 showImg(https://segmentfault.com/img/remote/1460000013229549); 【利用K8S技术栈打造个人私有云系列文...

    kid143 评论0 收藏0

发表评论

0条评论

IamDLY

|高级讲师

TA的文章

阅读更多
最新活动
阅读需要支付1元查看
<