安装minikube
一、目的minikube本地学习和开发的Kubernetes环境;minikube start | minikubefhttps://minikube.sigs.k8s.io/docs/start/二、环境介绍支持windows、linux、Mac。三、搭建OS:CentOS Linux release 7.4.1708 (Core)curl -LO https://storage.googlea
·
一、目的
minikube本地学习和开发的Kubernetes环境;
minikube start | minikubefhttps://minikube.sigs.k8s.io/docs/start/
二、环境介绍
支持windows、linux、Mac。
三、搭建
OS:CentOS Linux release 7.4.1708 (Core)
curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-latest.x86_64.rpm
rpm -Uvh minikube-latest.x86_64.rpm
yum-config-manager --add-repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo
yum install -y docker-ce
systemctl start docker
useradd -G docker mini
su - mini
minikube start --image-mirror-country=cn --image-repository=registry.cn-hangzhou.aliyuncs.com/google_containers
alias kubectl="minikube kubectl --"
kubectl get po -A
minikube dashboard
四、清理minikube环境
# 停止运行
minikube stop;
# 执行卸载命令
minikube delete
docker stop $(docker ps -q)
docker rm $(docker ps -a -q)
rm -r ~/.kube ~/.minikube
root# rm /usr/local/bin/localkube /usr/local/bin/minikube
root# systemctl stop docker
root# rm -rf /etc/kubernetes/
更多推荐
已为社区贡献1条内容
所有评论(0)