Mac安装kubernets

IT
IT
IT
406
文章
1
评论
2020年7月8日19:41:19 评论 5,757 1922字阅读6分24秒

install Docker Desktop

  • 下载地址 https://www.docker.com/products/docker-desktop

Mac安装kubernets

  • 安装Mac版本docker很简单,就不演示了。
  • 安装完后下载kubernets所需依赖镜像

下载Kubernetes

MacBook-Pro:github lucky$ git clone https://github.com/AliyunContainerService/k8s-for-docker-desktop.git
  • 打开如上GitHub地址,查看自己所需kubernets版本

Mac安装kubernets

  • 博主直接使用最新v1.16.5版本,执行如下命令,会自动下载所需镜像
MacBook-Pro:github lucky$ cd k8s-for-docker-desktop/
MacBook-Pro:k8s-for-docker-desktop lucky$ git checkout v1.16.5
Branch 'v1.16.5' set up to track remote branch 'v1.16.5' from 'origin'.
Switched to a new branch 'v1.16.5'
MacBook-Pro:k8s-for-docker-desktop lucky$ ./load_images.sh
  • 自动下载完后,打开kubernets会自动启动K8s服务

Mac安装kubernets

  • 已自动下载完的镜像
MacBook-Pro:~ lucky$ docker images
REPOSITORY                                                       TAG                                              IMAGE ID            CREATED             SIZE
docker/desktop-storage-provisioner                               v1.1                                             e704287ce753        3 months ago        41.8MB
docker/desktop-vpnkit-controller                                 v1.0                                             79da37e5a3aa        4 months ago        36.6MB
kubernetesui/dashboard                                           v2.0.0-rc5                                       fe0df1b24096        5 months ago        126MB
kubernetesui/metrics-scraper                                     v1.0.3                                           3327f0dbcb4a        5 months ago        40.1MB
docker/desktop-kubernetes                                        kubernetes-v1.16.5-cni-v0.7.5-critools-v1.15.0   a86647f0b376        5 months ago        279MB
k8s.gcr.io/kube-proxy                                            v1.16.5                                          0ee1b8a3ebe0        5 months ago        82.7MB
k8s.gcr.io/kube-scheduler                                        v1.16.5                                          b4d073a9efda        5 months ago        83.5MB
k8s.gcr.io/kube-controller-manager                               v1.16.5                                          441835dd2301        5 months ago        151MB
k8s.gcr.io/kube-apiserver                                        v1.16.5                                          fc838b21afbb        5 months ago        159MB
docker/kube-compose-controller                                   v0.4.25-alpha1                                   129151cdf35f        8 months ago        35.6MB
docker/kube-compose-api-server                                   v0.4.25-alpha1                                   989749268895        8 months ago        50.7MB
docker/kube-compose-installer                                    v0.4.25-alpha1                                   2a71ac5a1359        8 months ago        42.3MB
quay.io/kubernetes-ingress-controller/nginx-ingress-controller   0.26.1                                           29024c9c6e70        9 months ago        483MB
k8s.gcr.io/etcd                                                  3.3.15-0                                         b2756210eeab        10 months ago       247MB
k8s.gcr.io/coredns                                               1.6.2                                            bf261d157914        10 months ago       44.1MB
k8s.gcr.io/pause                                                 3.1                                              da86e6ba6ca1        2 years ago         742kB
  • 查看服务是否正常
MacBook-Pro:github lucky$ kubectl get cs
NAME                 AGE
scheduler            <unknown>
controller-manager   <unknown>
etcd-0               <unknown>
MacBook-Pro:github lucky$ kubectl get node
NAME             STATUS   ROLES    AGE   VERSION
docker-desktop   Ready    master   27h   v1.16.6-beta.0
继续阅读
  • 我的QQ
  • QQ扫一扫
  • weinxin
  • 我的头条
  • 头条扫一扫
  • weinxin
IT
  • 本文由 发表于 2020年7月8日19:41:19
  • 除非特殊声明,本站文章均为原创,转载请务必保留本文链接
Mac系统安装maven Mac

Mac系统安装maven

在官网下载二进制包 官网地址 http://maven.apache.org/download.cgi 下载二进制包 安装 点击解压后,把文件复制到/usr/local/下 reboot@bogon ...
Mac系统安装jdk Mac

Mac系统安装jdk

登陆官网使用Oracle账号下载 下载地址 https://www.oracle.com/java/technologies/javase/javase-jdk8-downloads.html 选择M...
Mac安装VMware免费 Mac

Mac安装VMware免费

简述 Mac系统的虚拟机目前出名的有Parallels Desktop和VMware,前者需要好几百大洋。VMware有免费版本,那何不白嫖一下子? 安装 打开如右网址https://www.vmwa...
Mac安装Homebrew Mac

Mac安装Homebrew

脚本全程高能,请系好安全带 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"...

您必须才能发表评论!