Kuboard 安装 metrics-server 时一直处于pending

 

 

最近在部署kuboard时遇到了metrics-server一直处于pending 的问题,Kuboard 安装 metrics-server 时一直处于pending_第1张图片

通过 kubectl describe deployment metrics-server -n kube-system

看到Name: metrics-server Namespace: kube-system CreationTimestamp: Thu, 18 Oct 2018 15:57:34 +0000 Labels: k8s-app=metrics-server Annotations: deployment.kubernetes.io/revision: 1 Selector: k8s-app=metrics-server Replicas: 1 desired | 1 updated | 1 total | 0 available | 1 unavailable

kubectl get nodes

NAME            STATUS   ROLES    AGE   VERSION
kube-master-1   Ready    master   17m   v1.12.1

kubectl describe node kube-master-1

Name:               kube-master-1
...
Taints:             node-role.kubernetes.io/master:NoSchedule

 

 发现是traints阻止了在master节点上调度新的pod,

kubectl taint node kube-master-1 node-role.kubernetes.io/master:NoSchedule-
node/kube-master-1 untainted

 通过这样删除traint,

Kuboard 安装 metrics-server 时一直处于pending_第2张图片

正常。

Kuboard 安装 metrics-server 时一直处于pending_第3张图片

你可能感兴趣的:(K8S,Kuboard)