benjaminhuo 2.1 的参考 https://github.com/kubesphere/ks-installer/issues/499#issuecomment-557395007 在kube-rbac-proxy的镜像的args里面加入–logtostderr。 3.0的已有该参数. 需要 yunx kubectl -n kubesphere-monitoring-system edit daemonset node-exporter 修改 - args: - --secure-listen-address=$(IP):9100 - --upstream=http://127.0.0.1:9100/ - --logtostderr env: - name: IP valueFrom: fieldRef: fieldPath: status.podIP image: kubesphere/kube-rbac-proxy:v0.4.1 name: kube-rbac-proxy
shujun 问题已解决,跟加–logtostderr参数没有关系,问题是因为kubernetes中node-exporter 该POD的yaml文件里有runAsNonRoot:true的配置,该配置限制了容器不以root用户运行,而是通过runAsUser: 333参数指定了特定的UID来运行。所以会报错没有权限。