Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

kubesphere installation is not possible due to duplicate crd short name cc #2296

Open
js7309 opened this issue Oct 18, 2024 · 0 comments
Open

Comments

@js7309
Copy link

js7309 commented Oct 18, 2024

google cloud cluster env

kubectl api-resources | grep cc
serviceaccounts                             sa                      v1                                           true         ServiceAccount
computeclasses                              cc,ccs                  cloud.google.com/v1                          false        ComputeClass
clusterconfigurations                       cc                      installer.kubesphere.io/v1alpha1             true         ClusterConfiguration
compositecontrollers                        cc,cctl                 metacontroller.k8s.io/v1alpha1               false        CompositeController
accessors                                                           storage.kubesphere.io/v1alpha1               false        Accessor

ks-installer log

TASK [ks-core/ks-core : KubeSphere | Importing ks-core status] *****************
FAILED - RETRYING: KubeSphere | Importing ks-core status (5 retries left).
FAILED - RETRYING: KubeSphere | Importing ks-core status (4 retries left).
FAILED - RETRYING: KubeSphere | Importing ks-core status (3 retries left).
FAILED - RETRYING: KubeSphere | Importing ks-core status (2 retries left).
FAILED - RETRYING: KubeSphere | Importing ks-core status (1 retries left).
fatal: [localhost]: FAILED! => {"attempts": 5, "changed": true, "cmd": "/usr/local/bin/kubectl patch cc ks-installer --type merge -p 
'{\"status\": {\"core\": {\"status\": \"enabled\", \"enabledTime\": \"T00:18:23UTC\"}}}' -n kubesphere-system\n", "delta": "0:00:00.615832", "end": " 00:18:43.974257", "failed_when_result": true, 
"msg": "non-zero return code", "rc": 1, "start": " 00:18:43.358425", 
"stderr": "Error from server (Forbidden): computeclasses.cloud.google.com \"ks-installer\" is forbidden: 
User \"system:serviceaccount:kubesphere-system:ks-installer\" cannot get resource \"computeclasses\" in API group \"cloud.google.com\" at the cluster scope", 
"stderr_lines": ["Error from server (Forbidden): computeclasses.cloud.google.com \"ks-installer\" is forbidden: 
User \"system:serviceaccount:kubesphere-system:ks-installer\" cannot get resource \"computeclasses\" in API group \"cloud.google.com\" at the cluster scope"], "stdout": "", "stdout_lines": []}

Conflict with CRD short name cc

/usr/local/bin/kubectl patch cc ks-installer

I request that you change it as shown below.

kubectl patch clusterconfiguration cc ks-installer

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant