kubectl get node查看节点报错 1、报错 Unable to connect to the server: x509: certificate signed by unknown authority (possibly because of "crypto/rsa: verification error" while trying to verify candidate authority certificate "kubernetes") 2、执行了,还是报错 mkdir -p $HOME/.kube sudo cp -i /e...
kubectl的运行在工作节点是需要额外进行配置的,它的配置文件是$HOME/.kube,如果想要在node节点运行此命令,需要将master上的.kube文件复制到node节点上,即在master节点上执行下面操作: scp -r ~/.kube node2:~/ 1. 允许在node1节点上执行kubectl get nodes 六、kubernetes常见错误 1.在Master节点执行: kubectl ge...
kubectl get all > kubectl get pods E0514 16:17:18.135296 49 request.go:853] Unexpected error when reading response body: &errors.errorString{s:"unexpected EOF"} E0514 16:17:18.182983 49 request.go:853] Unexpected error when reading response body: &errors.errorString{s:"unexpected EOF"} E0...
on agent node: token:123456node-label: -"role=normal"node-name:worker-cubeserver:https://192.168.1.116:6443 usecurl -sfL https://get.k3s.io | INSTALL_K3S_EXEC=agent sh -to install Initially, the metric server was running on the server node. and the cpu and mem indicators can be displ...
tke集群默认每个节点会安装kubectl命令的,大家可以随便登录一个节点通过kubectl命令去访问集群,但是新建集群或者新加节点到集群的时候,会出现新节点隔一段后执行kubectl命令报错的问题,具体报错如下: 代码语言:javascript 复制 # kubectlgetnodeerror:You must be loggedinto theserver(Unauthorized)...
[root@vm ~]# kubectl get pods -A NAMESPACE NAME READY STATUS RESTARTS AGE cattle-prometheus exporter-kube-state-cluster-monitoring-79c667fdc9-qq5k7 1/1 Running 0 21h cattle-prometheus exporter-node-cluster-monitoring-cs7lk 1/1 Running 0 21h ...
全部起起来了,就是间歇性的出现错误,执行kubectl get po -n kube-system能显示所有的pod都是running,要么“The connection to the server 192.168.56.101:6443 was refused - did you specify the right host or port?”我截的第一张图最下面有全部的状态. 比如说,我连着执行kubectl get po -n kube-system ...
kubectl get node error: yaml: line 2: mapping values are not allowed in this context 1,首先检查你的yaml文件 2,检查/root/.kube/config 文件是否存在,不在的话肯定是没有kubeadm init
#node2 机器上执行 hostnamectl set-hostname node2 #master 机器上执行 hostnamectl set-hostname master #每台机子上的hosts文件 vim /etc/hosts 192.168.0.158 master 192.168.0.159 node1 192.168.0.160 node2 然后查看版本,在kubernetesji集群从1.16.x版本升级到1.17.x版本地时候报错: ...