序
之前使用multipass装ubuntu,然后再用microk8s搭建k8s,这会直接用orbstack及kind在本地搭建k8s及istio
安装
orbstack
通过orbstack这个地址下载,主要是开销低,用来替代docker desktop
添加国内源 ~/.orbstack/config/docker.json
代码语言:javascript复制{
"registry-mirrors": [
"http://hub-mirror.c.163.com",
"https://docker.mirrors.ustc.edu.cn",
"https://registry.docker-cn.com",
"https://registry.hub.docker.com"
]
}
重启orbstack
安装go
代码语言:javascript复制brew install go
go env -w GO111MODULE=on
go env -w GOPROXY=https://goproxy.cn,direct
安装kind
代码语言:javascript复制go install sigs.k8s.io/kind@v0.20.0
export PATH=$HOME/go/bin:$PATH
kind create cluster
Creating cluster "kind" ...
⢎⡠ Ensuring node image (kindest/node:v1.27.3)