Git Product home page Git Product logo

Comments (7)

perotinus avatar perotinus commented on June 24, 2024

Also see kubernetes/kubernetes#47159

from cluster-registry.

G-Harmon avatar G-Harmon commented on June 24, 2024

I'm running into this. there are quite a few resources that I have to clean up manually when re-running crinit.
Here's the list of commands I needed to run in order to get my cluster cleaned up and ready to launch crinit again:

kc delete svc/first-cluster-reg -n clusterregistry ns/clusterregistry clusterroles/clusterregistry.k8s.io:apiserver clusterrolebindings/clusterregistry.k8s.io:apiserver clusterrolebindings/clusterregistry.k8s.io:apiserver-auth-delegator clusterrolebindings/clusterregistry.k8s.io:extension-apiserver-authentication-reader apiservices/v1alpha1.clusterregistry.k8s.io; kc delete rolebindings/clusterregistry.k8s.io:extension-apiserver-authentication-reader -n kube-system

from cluster-registry.

font avatar font commented on June 24, 2024

Thanks @G-Harmon! Yep, we need to look at introducing a delete subcommand or eventually use helm, to make this simpler. I use the following:

kubectl delete ns/clusterregistry clusterrole/clusterregistry.k8s.io:apiserver clusterrolebinding/clusterregistry.k8s.io:apiserver clusterrolebinding/clusterregistry.k8s.io:apiserver-auth-delegator; kubectl -n kube-system delete rolebinding/clusterregistry.k8s.io:extension-apiserver-authentication-reader apiservice/v1alpha1.clusterregistry.k8s.io

from cluster-registry.

jianzhangbjz avatar jianzhangbjz commented on June 24, 2024

Looking forward adding the --force option for the init command.

from cluster-registry.

font avatar font commented on June 24, 2024

@jianzhangbjz While a --force option doesn't exist for the init subcommand, #192 adds the ability to delete the clusterregistry deployment and it has a --force option as well.

from cluster-registry.

jianzhangbjz avatar jianzhangbjz commented on June 24, 2024

@font Oh, sorry, my misunderstanding. Got it, thanks!

from cluster-registry.

perotinus avatar perotinus commented on June 24, 2024

Note that this issue is no longer applicable because of the CRD migration done in #225, which removes crinit and the standalone API server.

from cluster-registry.

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.