1.寻找 一个cluster-info的模板 vim cluster-info.yaml apiVersion:v1 kind:ConfigMap metadata:name:cluster-info namespace:kube-publicdata:kubeconfig:| apiVersion:v1 clusters:-cluster:certificate-authority-data:xxxxxxxxxxxx server:https://192.168.68.111:6443name:""contexts:nullcurrent-context:""kind:Co...
#报错如下 Failed to connect to API Server"192.168.0.240:6443":there is no JWSsignedtoken in the cluster-info ConfigMap.This token id"c1d408"is invalidforthiscluster,can't connect 原因 官方说是为了安全,初始化token后会在24小时候会被master删除, 解决办法 在master节点重新生...
*v1.ConfigMap: User "system:serviceaccount:kube-system:bootstrap-signer" cannot list configmaps in the namespace "kube-public". (get configmaps) E0704 17:15:25.530671 1 reflector.go:201] k8s.io/kubernetes/pkg/controller/bootstrap/bootstrapsigner.go:151: Failed to list *v1.ConfigMap: User...
but when i change the server tohttps://192.168.178.4:6443directly, then rerunkubeadm join Unable to fetch the kubeadm-config ConfigMap: configmaps "kube-proxy" is forbidden: User "system:bootstrap:xxxyyyzzz" cannot get resource "configmaps" in API group "" in the namespace "kube-system" ...
这个问题是在kube-public下的configmap的cluster-info中没有JWS签名, 本质上是token过期. 可以通过kube config命令查看cluster-info的内容: root@ubuntu:~# kubectlgetconfigmap cluster-info --namespace=kube-public-o yaml apiVersion: v1 data: kubeconfig:|apiVersion: v1 ...
create Create a resource from a file or from stdin. expose 使用 replication controller, service, deployment 或者 pod 并暴露它作为一个新的Kubernetes Service run 在集群中运行一个指定的镜像 set 为 objects 设置一个指定的特征 Basic Commands (Intermediate): ...
configmaps cm true ConfigMap endpoints ep true Endpoints events ev true Event limitranges limits true LimitRange namespaces ns false Namespace nodes no false Node persistentvolumeclaims pvc true PersistentVolumeClaim persistentvolumes pv false PersistentVolume ...
"configMap": { "name": "kube-proxy", "defaultMode": 420 } }, { "name": "xtables-lock", "hostPath": { "path": "/run/xtables.lock", "type": "FileOrCreate" } }, { "name": "lib-modules", "hostPath": { "path": "/lib/modules", "type": "" }...