在vb,如何进入一个正在运行的系统里面去


1点击显示
出来 的界面如何 需要账号密码

minikube 的账号密码是什么
测试 root
果然直接就登录了
把 admin.conf 移动到那里来的?

问题 没有etc/kubernetes/admin.conf
进入之后使用发现有kubeadm kubele这2个东西
我们使用 kubeadm init重新启动一个
估计之后就有 /etc/kubernetes/admin.conf

卡在拉取镜像的问题上
检查访问 google没问题

在 kubeadmin init 测试一次
目前需要下载的 docker 下不到

修改 kubeadm config
kubeadm config print init-defaults ClusterConfiguration >kubeadm.conf
修改 image的地址
还有 k8s的版本
重新拉取 docker images
https://www.jianshu.com/p/d42ef0eff63f
配置阿里云源 速度块
kubeadm init --kubernetes-version=1.14.1 \
--apiserver-advertise-address=192.168.5.43 \
--image-repository registry.aliyuncs.com/google_containers \
--service-cidr=10.1.0.0/16 \
--pod-network-cidr=10.254.0.0/16
The connection to the server localhost:8080 was refused - did you specify the right host or port?
minikube ssh
登入到你的 master 里面
copy /etc/kubenates/admin.conf 到你的 work 也就是你的机器的/etc/kubenates/admin.conf
echo "export KUBECONFIG=/etc/kubernetes/admin.conf" >> ~/.bash_profile
source ~/.bash_profile
kubectl get nodes
MacBookdeMacBook-Pro:minikube macbook$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
minikube Ready master 63m v1.14.3
网友评论