# 基本

minikube start -p myminikube --vm-driver=virtualbox

&#x20;😄 minikube v1.2.0 on linux (amd64)\
&#x20;🔥 Creating virtualbox VM (CPUs=2, Memory=2048MB, Disk=20000MB) ...\
&#x20;🐳 Configuring environment for Kubernetes v1.15.0 on Docker 18.09.6 \
🚜 Pulling images ... \
🚀 Launching Kubernetes ... \
⌛ Verifying: apiserver proxy etcd scheduler controller dns \
🏄 Done! kubectl is now configured to use "myminikube"

若是啟動完成可以透過以下指令觀看 cluster 情況：

```
kubectl cluster-info
```

查看 minikube 的狀態：

```
 minikube status
```

```
minikube -p myminikube status 
```

host: Running kubelet: Running \
apiserver: Running \
kubectl: Correctly \
Configured: pointing to minikube-vm at 192.168.99.101

```
minikube -p myminikube dashboard
```

![](/files/-Lk8SpttxlpaJeb9XGyZ)

### 部屬應用 <a href="#bu-shu-ying-yong" id="bu-shu-ying-yong"></a>

```
kubectl run docker-python-flask-demo --image=docker.io/kdchang/docker-python-flask-demo:v1 --port 3000
kubectl get pods
```

<div align="left"><img src="/files/-Lk8TdyUDQduw3rHvLpp" alt=""></div>

<https://blog.techbridge.cc/2018/12/01/kubernetes101-introduction-tutorial/>


---

# Agent Instructions: 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:

```
GET https://kawsing.gitbook.io/opensystem/k8s/ji-ben.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
