无码av一区二区三区无码,在线观看老湿视频福利,日韩经典三级片,成 人色 网 站 欧美大片在线观看

歡迎光臨散文網(wǎng) 會員登陸 & 注冊

minikube set up k8s in china with virtualbox driver in window

2023-07-21 16:33 作者:一點金光  | 我要投稿

set up k8s in china with virtualbox driver in window (minikube)

minikube+virtualbox

## current version

- minikube 1.30.1??

-?docker 20.10.23

-?Kubernetes 1.26.3

-?virtualbox 7.0.8

ps:you can install them on windows like these:

```powershell

choco install virtualbox -y

scoop install minikube@1.30.1

# scoop install docker@20.10.23

# scoop install kubectl@1.26.3

```


## setup k8s (demo)

- [x] create and start ms and setup k8s

```powershell

minikube?config?set?driver?virtualbox

minikube start --memory 8912mb --cpus 8 `

--image-mirror-country=cn `

--host-only-cidr="192.168.59.1/24" `

--static-ip 192.168.59.100 `

--kubernetes-version='1.26.3'

```


```bash

minikube config set driver virtualbox

# minikube start --image-mirror-country=cn --host-only-cidr="192.168.59.1/24"

# $ip=minikube ip

minikube start --memory 8912mb --cpus 8\

--image-mirror-country=cn\

--host-only-cidr="192.168.59.1/24"\

--static-ip 192.168.59.100\

# --kubernetes-version='1.26.3'

# --cache-images=true ?\

# --insecure-registry='127.0.0.1:5000,192.168.59.100:32070' \

# --registry-mirror="https://registry.docker-cn.com,https://docker.mirrors.ustc.edu.cn" \

# --memory 2048mb --cpus 2

# --registry-mirror="https://registry.docker-cn.com,https://docker.mirrors.ustc.edu.cn"

# --insecure-registry='127.0.0.1:5000'

# --service-cluster-ip-range='10.10.0.0/24'

# --subnet='':

```


## next work

- [x] get pods (ps:`minikube?kubectl -- get pods -A`)

- [x] get vm ip??(ps:`minikube ip`)

- [x] install Kubernetes client kubectl tool to use kubectl easy for minikube

```powershell

scoop install kubectl@1.26.3

kubectl get pods -A

```

- [x] use dashborad?(ps:`minikube?addons enable?dashborad`)

- [x] use?helm 2.x (ps:`minikube?addons enable?helm;scoop install helm2` )

- [x] use?helm 3.x?(ps:`scoop install helm@3.12.2`?)

......

- [?] use docker registry

- [?] use npm registry

- [?] use github or gitlab

- [?]?use nginx-ingress

- [?]?use?k8s to dev with vscode


## delete??k8s

```powershell

minikube stop

#?minikube delete --all?

# clean all and delete ~/.minikube

# minikube delete --all --purge


# del minikube cache after uninstalling minikube

# del ~\.config\.minikube -Force -Recurse -ErrorAction SilentlyContinue

```


## refers

[minikube-offical-docs](https://minikube.sigs.k8s.io/)

[k8s.kubectl-usage](https://zhuanlan.zhihu.com/p/364994610)


minikube set up k8s in china with virtualbox driver in window的評論 (共 條)

分享到微博請遵守國家法律
平南县| 原平市| 徐闻县| 阿巴嘎旗| 高青县| 栾川县| 长葛市| 犍为县| 师宗县| 廉江市| 鄱阳县| 蛟河市| 柏乡县| 渭南市| 孟连| 江油市| 鲁山县| 三原县| 祁阳县| 温州市| 车险| 中江县| 鄂温| 绥宁县| 宁武县| 保亭| 宁远县| 雅江县| 三门县| 文山县| 阿城市| 资中县| 阳曲县| 石门县| 定州市| 偃师市| 那曲县| 固安县| 珠海市| 两当县| 沽源县|