minikube命令

网友投稿 790 2022-10-02

minikube命令

minikube命令

Basic Commands:

0minikube version查看版本

1minikube start启动一个集群

minikube start --vm-driver=none --image-repository=registry--hangzhou.aliyuncs.com/google_containers

start命令详解

--kubernetes-version="v1.16.0"

--memory 3000

--cpus=2

minikube start --vm-driver=none --image-repository=registry--hangzhou.aliyuncs.com/google_containers --kubernetes-version="v1.16.0" --memory 3000 --cpus=2

2 minikube status查看集群状态

3minikube stop 停止一个集群

4 minikube delete 删除集群

5minikube addons list 列出addons

- addon-manager: enabled

- dashboard: disabled

- default-storageclass: enabled

- efk: disabled

- freshpod: disabled

- gvisor: disabled

- helm-tiller: disabled

- ingress: disabled

- ingress-dns: disabled

- logviewer: disabled

- metrics-server: disabled

- nvidia-driver-installer: disabled

- nvidia-gpu-device-plugin: disabled

- registry: disabled

- registry-creds: disabled

- storage-provisioner: enabled

- storage-provisioner-gluster: disabled

6 minikube addons enable dashboard 启用addons

minikube addons enable metrics-server

minikube addons enable registry

minikube addons enable ingress

minikube addons enable helm-tiller

7minikube addons disable registry 删除addon

8 minikube addons configure registry-creds 配置addon

9minikube addons open dashboard

10minikube ip获取集群ip

11minikube dashboard 启动dashboard代理

不过是绑定在127.0.0.1上面的

可以将kubernetes-dashboard svc 改为nodeport类型

然后通过nodeport访问

如果无法访问则

iptables -P FORWARD ACCEPT

12 minikube service list 列出所有service

13minikube logs 显示所有日志

14minikube config 配置设置

minikube config view

minikube config get

minikube config set

minikube config unset

Configurable fields:

* vm-driver

* container-runtime

* feature-gates

* v

* cpus

* disk-size

* host-only-cidr

* memory

* log_dir

* kubernetes-version

* iso-url

* WantUpdateNotification

* ReminderWaitPeriodInHours

* WantReportError

* WantReportErrorPrompt

* WantKubectlDownloadMsg

* WantNoneDriverWarning

* profile

* bootstrapper

* ShowDriverDeprecationNotification

* ShowBootstrapperDeprecationNotification

* dashboard

* addon-manager

* default-storageclass

* efk

* ingress

* insecure-registry

* registry

* registry-creds

* freshpod

* storage-provisioner

* storage-provisioner-gluster

* metrics-server

* nvidia-driver-installer

* nvidia-gpu-device-plugin

* logviewer

* gvisor

* helm-tiller

* ingress-dns

* hyperv-virtual-switch

* disable-driver-mounts

* cache

* embed-certs

* native-ssh

版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。

上一篇:小程序怎么导入sdk实现聊天功能(小程序接入sdk)
下一篇:动态规划攻略之:买卖股票的最佳时机
相关文章

 发表评论

暂时没有评论,来抢沙发吧~