kuboard-v3-node节点或者master 状态不显示

1 查看集群

node节点或者master 状态不显示.png

[root@master1 ~]# kubectl top nodes
NAME      CPU(cores)   CPU%   MEMORY(bytes)   MEMORY%     
master1   376m         18%    1867Mi          37%         
master2   250m         12%    948Mi           25%         
master3   337m         16%    1022Mi          27%         
node2     233m         11%    641Mi           17%         
node1     <unknown>                           <unknown> 

2 查看日志得出

[root@master1 ~]# kubectl describe pods metrics-server-78cff478b7-4kps7  -n kube-system
Name:         metrics-server-78cff478b7-4kps7
Namespace:    kube-system
Priority:     0
Node:         node1/192.168.0.142
Start Time:   Thu, 23 Apr 2020 15:18:13 +0800
Labels:       k8s-app=metrics-server
              pod-template-hash=78cff478b7
Annotations:  cni.projectcalico.org/podIP: 100.66.209.193/32
Status:       Running
IP:           100.66.209.193
IPs:
  IP:           100.66.209.193
Controlled By:  ReplicaSet/metrics-server-78cff478b7
Containers:
  metrics-server:
    Container ID:  docker://d9da2f4e607c36fe0d8af5dde5700aecbb58c416e9004209107185c90fc42ef8
    Image:         registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server-amd64:v0.3.6
    Image ID:      docker-pullable://registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server-amd64@sha256:c9c4e95068b51d6b33a9dccc61875df07dc650abbf4ac1a19d58b4628f89288b
    Port:          4443/TCP
    Host Port:     0/TCP
    Args:
      --cert-dir=/tmp
      --secure-port=4443
      --kubelet-insecure-tls=true
      --kubelet-preferred-address-types=InternalIP
    State:          Running
      Started:      Thu, 23 Apr 2020 15:18:15 +0800
    Ready:          True
    Restart Count:  0
    Environment:    <none>
    Mounts:
      /tmp from tmp-dir (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from metrics-server-token-f6zpr (ro)
Conditions:
  Type              Status
  Initialized       True 
  Ready             True 
  ContainersReady   True 
  PodScheduled      True 
Volumes:
  tmp-dir:
    Type:       EmptyDir (a temporary directory that shares a pod's lifetime)
    Medium:     
    SizeLimit:  <unset>
  metrics-server-token-f6zpr:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  metrics-server-token-f6zpr
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  beta.kubernetes.io/os=linux
Tolerations:     node.kubernetes.io/not-ready:NoExecute for 300s
                 node.kubernetes.io/unreachable:NoExecute for 300s
Events:
  Type    Reason     Age        From               Message
  ----    ------     ----       ----               -------
  Normal  Scheduled  <unknown>  default-scheduler  Successfully assigned kube-system/metrics-server-78cff478b7-4kps7 to node1
  Normal  Pulling    32m        kubelet, node1     Pulling image "registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server-amd64:v0.3.6"
  Normal  Pulled     32m        kubelet, node1     Successfully pulled image "registry.cn-hangzhou.aliyuncs.com/google_containers/metrics-server-amd64:v0.3.6"
  Normal  Created    32m        kubelet, node1     Created container metrics-server
  Normal  Started    32m        kubelet, node1     Started container metrics-server
[root@master1 ~]# kubectl logs metrics-server-78cff478b7-4kps7 -n kube-system



Error from server (InternalError): Internal error occurred: Authorization error (user=kube-apiserver-kubelet-client, verb=get, resource=nodes, subresource=proxy)

3 在出故障的节点执行命令iptables(允许转发通过 查看规则)**

iptables -P FORWARD ACCEPT && ipvsadm -Ln