> For the complete documentation index, see [llms.txt](https://gitbook.gpg123.vip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.gpg123.vip/ji-shu-zhan/yun-ji-suan/minikube.md).

# Minikube

## 准备环境

* [x] linux/windows机器
* [x] 安装docker
* [x] 配置docker镜像加速

## 下载安装包

<https://github.com/kubernetes/minikube>

根据自己的系统选择需要安装的版本

<figure><img src="/files/jf82QgP786D8QjKZBm2y" alt=""><figcaption></figcaption></figure>

## 添加命令到/usr/bin

<pre><code>// 修改文件必要的执行权限
<strong>mv minikube-xxx-xxx minikube &#x26;&#x26; chmod +x minikube
</strong></code></pre>

```
// 添加到/usr/bin
ln -s /data/minikube /usr/bin/minikube
```

```
// 是否成功
minikube version
```

## 创建预设资源

cd  /$home下，一般为/root

```
// 创建文件夹
mkdir .minikube && cd .minikube
```

```
// 创建文件夹
mkdir config && cd config
```

```
// 创建资源文件json
touch config.json
```

```
// 写入以下内容,核心、内存、版本
{
  "cpus": 4,
  "memory": "8192",
  "driver": "docker",
  "kubernetes-version": "v1.27.3"
}
```

## 执行创建

```
// linux下执行
minikube start --force
```

```
// win下执行
minikube start
```

## 开启访问面板

等待镜像拉取成功后，启动消息执行完成 Done!

```
// 启用面板
minikube dashboard 
```

```
// 执行代理转发
nohup kubectl proxy --port=8002 --address='0.0.0.0' --accept-hosts='^.*' &
```

```
// 替换url，将127.0.0.1:xxx部分替换为ip:8002,其余不变

```

<figure><img src="/files/vdliGvJwekUBVzaH5nR6" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://gitbook.gpg123.vip/ji-shu-zhan/yun-ji-suan/minikube.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
