karmada: Register a cluster to Karmada with Pull mode failed
What happened: Register a cluster to Karmada with Pull mode failed, error:
./karmadactl register karmada-apiserver.karmada-system.svc.cluster.local:5443 --token 5zmvck.151hyrw55gebxq11 --discovery-token-ca-cert-hash sha256:f2596eb0ff5c8acac0d292837889dc7bbcb5adc947d97bc3ec189f4ebdb0cf6a
[preflight] Running pre-flight checks
[prefligt] All pre-flight checks were passed
[karmada-agent-start] Waiting to perform the TLS Bootstrap
error: couldn't validate the identity of the API Server: configmaps "cluster-info" is forbidden: User "system:anonymous" cannot get resource "configmaps" in API group "" in the namespace "kube-public"
What you expected to happen: register success How to reproduce it (as minimally and precisely as possible):
- install karmada control plane by helm: https://github.com/karmada-io/karmada/tree/master/charts/karmada
- Register a cluster to Karmada with Pull mode with command:
./karmadactl register karmada-apiserver.karmada-system.svc.cluster.local:5443 --token 5zmvck.151hyrw55gebxq11 --discovery-token-ca-cert-hash sha256:f2596eb0ff5c8acac0d292837889dc7bbcb5adc947d97bc3ec189f4ebdb0cf6a
Anything else we need to know?:
Environment:
- Karmada version:
v1.5.0
- kubectl-karmada or karmadactl version (the result of
kubectl-karmada versionorkarmadactl version):
karmadactl version: version.Info{GitVersion:"v1.5.0", GitCommit:"51fbbb055d47331e83a6ca2e90b8a5312d6a7986", GitTreeState:"clean", BuildDate:"2023-03-09T03:28:23Z", GoVersion:"go1.19.7", Compiler:"gc", Platform:"linux/amd64"}
- Others:
About this issue
- Original URL
- State: closed
- Created a year ago
- Comments: 19 (11 by maintainers)
@lonelyCZ Yes, and I missed the point that I not only changed the
hostnetworkbut also thenodeselectorat the same time. Maybe I only need to updatenodeselector.