4

虚拟机下安装 minikube

 2 years ago
source link: https://blog.leftshadow.com/?p=1405
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

虚拟机下安装 minikube

下载 minikube, 并安装到 /usr/local/bin 目录

curl -Lo minikube https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64 \
  && chmod +x minikube
sudo mkdir -p /usr/local/bin/
sudo install minikube /usr/local/bin/

上述安装 默认在 linux 下, 其他平台参阅:

install doc 1
install doc 2

  1. 启动 minikube

关于代理问题: minikube 启动需要在 docker 中拉取国外镜像, 故而需要设置国内源, 本身 minikube 启动也需要在墙外下载相关依赖, 所以启动前还需要配置代理

set http_proxy=domain:8080
set https_proxy=domain:8080

proxy 相关问题

如果此前安装过, 需要删除上次安装痕迹

sudo minikube delete

这里 minikube 安装的 ubuntu 本身就运行在虚拟机中, 故而可以跳过添加 vm 层

sudo minikube start --vm-driver=none --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
sudo minikube config set vm-driver none
  1. 启动 dashboard
    记得关掉代理,或者在代理层过滤掉本地回环地址 127.0.0.1 & localhost
sudo minikube dashboard
Post Views: 1,026

分类: 念经

一个回复在 “虚拟机下安装 minikube”

  1. eef633c3542ef204e281cc65f6d3cfac?s=60&d=retro&r=grantrism

    作者,你好!我是腾讯云+社区的小编,关注了您分享的技术文章,觉得很棒,我们诚挚邀请您加入云+社区,与我们众多的社区作者一起为开发者分享技术干货。这个是我们云+社区【腾讯云自媒体分享计划】入驻流程和权益介绍的地址:https://cloud.tencent.com/developer/support-plan 如果您愿意加入或者想了解更多的信息请联系我~微信:techou002,我们对您的加入充满期待。

发表评论 取消回复

邮箱地址不会被公开。 必填项已用*标注

评论

名称 *

电子邮件 *

站点


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK