Mac安装kubernets

IT
IT
IT
335
文章
1
评论
2020年7月8日19:41:19 评论 1,122 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安装MySQL Mac

Mac安装MySQL

安装 第一步:打开网址,https://www.mysql.com ,点击downloads之后跳转到https://www.mysql.com/downloads 选择Community选项 第二步...
Hugo install dot Mac

Hugo install dot

添加源 # vim /etc/yum.repos.d/hugo.repo name=Copr repo for hugo owned by daftaupe baseurl=https://copr-...
Mac安装hugo Mac

Mac安装hugo

尝试过 Hexo 、GatsbyJs、 Vuepress 搭建博客后,对这些工具最大的不满,就是运行速度以及打包速度。 后来看到 Hugo ,号称最快的静态站点生成器后。 尝试搭建博客,发现不管是运行...
创建密钥 Mac

创建密钥

guozhendeMacBook-Pro:~ lucky$ ssh-keygen -t rsa -C 'your email@domain.com' Generating public/private...