cnrancher / kube-explorer

A portable explorer for Kubernetes, without any dependency.
Apache License 2.0
220 stars 27 forks source link

kube-explorer自动创建shell pod的tolerations问题 #27

Closed xshrim closed 1 year ago

xshrim commented 1 year ago

版本:kubernetes v1.25.3 kube-explorer v0.2.12

打开 kubectl shell 会创建shell pod,但pod的tolerations配置的是

- effect: NoSchedule
    key: node-role.kubernetes.io/controlplane
    operator: Equal
    value: "true"

但使用kubeadm创建的集群的master节点上配置的taint是node-role.kubernetes.io/control-plane:NoSchedule,因此会导致shell pod无法部署,能否使此工具支持kubeadm创建的单节点集群。

复现步骤 kubeadm部署单节点集群 进入 kube-explorer 点击右上角 kubectl shell kubectl -n kube-system describe pod dashboard-shell-xxxxx

niusmallnan commented 1 year ago

This taint could be removed: https://kubernetes.io/docs/setup/production-environment/tools/kubeadm/create-cluster-kubeadm/#control-plane-node-isolation

This should not be the job of kube-explorer.