Coder Social home page Coder Social logo

Comments (6)

itdove avatar itdove commented on August 22, 2024

@levinwang88 Are you sure you waited enough before running the "accept"
You can also add the option `--wait 60" to wait the CSR.

from clusteradm.

nobody4t avatar nobody4t commented on August 22, 2024

@levinwang88
Could you please provide more info about your env ?

CSR c2-mq8rj already approved
Error: no CSR to approve for cluster c2

For your provided info, if the CSR has been already approved, it will not be approved again.

I have reproduced your error. I try to approve the csr again and got the same error as you.
So I think it should be not an error/bug from clusteradm.

from clusteradm.

levinwang88 avatar levinwang88 commented on August 22, 2024

I first deleted the previously joined cluster and then rejoined the cluster. This problem occurred.

  1. I use the command "clusteradm join --hub-token <token_data> --hub-apiserver https://126.0.0.1:39242 --cluster-name <managed_cluster_name>" to I use the command to rejoin the cluster, and the csr pending state will also appear on the hub.
  2. This problem will occur when I go to the approve cluster, and I find that the previous pending state has indeed been appove, but no cluster was found using the command "kc get managedcluster"
  3. If the previous managed cluster has been joined to the hub and I want to rejoin, what should I do? Can I delete the cluster from the hub cluster first?

from clusteradm.

qiujian16 avatar qiujian16 commented on August 22, 2024

@levinwang88 yes you can delete the cluster, and then rerun the join command. There will be a new csr created on the hub.

from clusteradm.

nirs avatar nirs commented on August 22, 2024

If the csr was already approved, why not succeed with message like:

CSR c2-mq8rj already unchanged

from clusteradm.

qiujian16 avatar qiujian16 commented on August 22, 2024

the old csr may not work if the agent is restarted. It will try to create a new csr.

from clusteradm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.