1. 安装VirtualBox + Centos
https://blog.csdn.net/qq_37316272/article/details/87691835
一些问题以及解决办法:
https://blog.csdn.net/moso_wang/article/details/118688136?spm=1001.2014.3001.5502
https://blog.csdn.net/qq_37316272/article/details/87695260?spm=1001.2014.3001.5501
2. 搭建成功,基本命令:
kubernetes init 报错:ERROR ImagePull]: failed to pull image registry.aliyuncs.com/google_containers/coredns:v1.8.0: output: Error response from daemon: manifest for registry.aliyuncs.com/google_containers/coredns:v1.8.0 not found: manifest unknown: manifest unknown
可以参考:https://blog.51cto.com/8999a/2784605
搭建k8s(前6步有用):https://www.kubernetes.org.cn/7189.html
从第7步开始:按照这个教程:https://www.jianshu.com/p/43f1f7ec2218
获取recommended.yaml的地址是变化的,要在:https://github.com/kubernetes/dashboard 找到
kubectl get node 查看节点,pod
kubectl get pod --all-namespaces
kubectl logs -f -n kubernetes-dashboard kubernetes-dashboard-67484c44f6-vbsmn
node节点为NotReady,因为corednspod没有启动,缺少网络pod
在最后查看token的时候,需要加一个步骤:
kubectl -n kubernetes-dashboard get secret
下一篇介绍常用命令