k8s初体验,minikube docker 单节点需要的所有镜像shell

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u010652906/article/details/86075437

镜像拉取

在拉取镜像之前请登录dockerhub
步骤:

docker login
##按提示操作,输入用户名和密码

minikube-image.sh

docker pull likai521/storage-provisioner:v1.8.1
docker pull likai521/k8s-dns-sidecar-amd64:1.14.8
docker pull likai521/k8s-dns-kube-dns-amd64:1.14.8
docker pull likai521/kube-proxy-amd64:v1.10.0
docker pull likai521/kubernetes-dashboard-amd64:v1.10.0
docker pull likai521/kube-addon-manager:v8.6
docker pull likai521/k8s-dns-dnsmasq-nanny-amd64:1.14.8
docker pull likai521/kube-controller-manager-amd64:v1.10.0
docker pull likai521/kube-scheduler-amd64:v1.10.0
docker pull likai521/etcd-amd64:3.1.12
docker pull likai521/kube-apiserver-amd64:v1.10.0
docker pull likai521/pause-amd64:3.1

docker tag likai521/storage-provisioner:v1.8.1 gcr.io/k8s-minikube/storage-provisioner:v1.8.1
docker tag likai521/k8s-dns-sidecar-amd64:1.14.8  k8s.gcr.io/k8s-dns-sidecar-amd64:1.14.8
docker tag likai521/k8s-dns-kube-dns-amd64:1.14.8  k8s.gcr.io/k8s-dns-kube-dns-amd64:1.14.8
docker tag likai521/kube-proxy-amd64:v1.10.0  k8s.gcr.io/kube-proxy-amd64:v1.10.0
docker tag likai521/kubernetes-dashboard-amd64:v1.10.0  k8s.gcr.io/kubernetes-dashboard-amd64:v1.10.0
docker tag likai521/kube-addon-manager:v8.6  k8s.gcr.io/kube-addon-manager:v8.6
docker tag likai521/k8s-dns-dnsmasq-nanny-amd64:1.14.8  k8s.gcr.io/k8s-dns-dnsmasq-nanny-amd64:1.14.8
docker tag likai521/kube-controller-manager-amd64:v1.10.0  k8s.gcr.io/kube-controller-manager-amd64:v1.10.0
docker tag likai521/kube-scheduler-amd64:v1.10.0  k8s.gcr.io/kube-scheduler-amd64:v1.10.0
docker tag likai521/etcd-amd64:3.1.12  k8s.gcr.io/etcd-amd64:3.1.12
docker tag likai521/kube-apiserver-amd64:v1.10.0  k8s.gcr.io/kube-apiserver-amd64:v1.10.0
docker tag likai521/pause-amd64:3.1  k8s.gcr.io/pause-amd64:3.1

时间比较长请耐性等待,如果有一些镜像拉取失败,可以单独拉取镜像然后执行tag操作。

启动

minikube start --vm-driver=none

访问

##查看dashboard-UI的端口号
kubectl get services  --all-namespaces 

在这里插入图片描述

没有更多推荐了,返回首页

私密
私密原因:
请选择设置私密原因
  • 广告
  • 抄袭
  • 版权
  • 政治
  • 色情
  • 无意义
  • 其他
其他原因:
120
出错啦
系统繁忙,请稍后再试