k8s部署问题
[root@localhost /]#
[root@localhost /]# kubectl -s create -f rbac.yaml
The connection to the server 192.168.27.32:8080 was refused - did you specify the right host or port?
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# cat etc/kubernetes/
kubelet.conf manifests/ pki/
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# mkdir -p /root/.kube
[root@localhost /]# cp /etc/kubernetes/admin.conf /root/.kube/config
cp: 无法获取"/etc/kubernetes/admin.conf" 的文件状态(stat): 没有那个文件或目录
[root@localhost /]# cp admin.conf /root/.kube/config
admin.conf boot/ dev/ home/ lib/ media/ opt/ rbac.yaml run/ srv/ tmp/ var/
bin/ calico.yaml etc/ k8s.node2.conf lib64/ mnt/ proc/ root/ sbin/ sys/ usr/
[root@localhost /]# cp admin.conf /root/.kube/config
[root@localhost /]# kubectl get pods
No resources found in default namespace.
[root@localhost /]# kubectl get node
NAME STATUS ROLES AGE VERSION
master NotReady master 94m v1.17.0
node1 NotReady
92m v1.17.0
node2 NotReady 92m v1.17.0
[root@localhost /]#
阅读(3573) | 评论(0) | 转发(0) |