Coder Social home page Coder Social logo

Comments (15)

FillZpp avatar FillZpp commented on May 20, 2024

Em...Let me guess your operations:

  1. First, you applied the CRDs into your cluster.
  2. Then, you created a StatefulSet.apps.kruise.io resource.
  3. After that, you tried to install the kruise-controller-manager, and unfortunately you got an error.

Am i right?

from kruise.

ntboot avatar ntboot commented on May 20, 2024
  1. extend CRD
  2. then deploy kruise-manager

Reference document: https://github.com/openkruise/kruise/blob/master/docs/tutorial/kruise-install.md

from kruise.

FillZpp avatar FillZpp commented on May 20, 2024

@ntboot Could you show me kubectl get statefulset.apps.kruise.io

from kruise.

ntboot avatar ntboot commented on May 20, 2024

I don't understand why kruise-controller-manager will miss restart once my guest book is installed.

image
Uploading image.png…

from kruise.

FillZpp avatar FillZpp commented on May 20, 2024

@jian-he @resouer I think this is a bug of guestbook-kruise chart.

We can not put both kruise-manager and StatefulSet.apps.kruise.io resources in chart, because the manager must be started before users create the AdvancedStatefulSet. But we have no way to define the order that yamls in chart which should be applied first and others shouldn't be applied util the first one has been ready.

from kruise.

ntboot avatar ntboot commented on May 20, 2024

I know what you mean, you have to deploy kruise-controller-manager correctly first, and then you can't deploy the related resources of astatefulset controller correctly. But I also follow the document step by step, but still encountered the above problems.

from kruise.

ntboot avatar ntboot commented on May 20, 2024

I like this project very much, and I hope that the elastic expansion behind you will open up as soon as possible. So now I want to solve this problem

from kruise.

resouer avatar resouer commented on May 20, 2024

@FillZpp If I'm understanding it correctly, you are suggesting we should very kruise-manager is running before deploy any applications?

We can not put both kruise-manager and StatefulSet.apps.kruise.io resources in chart

kruise-manager is not part of guestbook-kruise charts, it's started separately by following https://github.com/openkruise/kruise/blob/master/docs/tutorial/kruise-install.md

from kruise.

FillZpp avatar FillZpp commented on May 20, 2024

@resouer Got it.

@ntboot So i think the problem is, after kruise-manager installed, you went to install guestbook chart immediately, but the kruise-manager had not been ready yet.

This could be a regular problem, i have to think of how to avoid it.

from kruise.

ntboot avatar ntboot commented on May 20, 2024

I guess so. I did a test waiting for kruise-manger to start for 8 minutes. Then I started an astatefuleset controller, and finally kruise-manger was restart.

from kruise.

ntboot avatar ntboot commented on May 20, 2024

@FillZpp

from kruise.

FillZpp avatar FillZpp commented on May 20, 2024

#50 will fix this problem.

After deployed kruise into a cluster, users can not create resources defined in kruise util kurise-manager has been started.

from kruise.

ntboot avatar ntboot commented on May 20, 2024

I changed a new cluster operation and succeeded! Thank you

However, the cluster that had problems before cleaned up the relevant resources, and then try again is not good. My understanding is that the order of deleting resources should be:

  1. sts. apps. kruise. IO

  2. kruise-manger

Am I right? @FillZpp

from kruise.

FillZpp avatar FillZpp commented on May 20, 2024

@ntboot Delete all sts.apps.kruise.io resources, then delete the pod kubectl delete pod -n kruise-system kruise-controller-manager-0.
After that, the StatefulSet named kruise-controller-manager will create a new Pod which should be Ready.

from kruise.

ntboot avatar ntboot commented on May 20, 2024

got it

from kruise.

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.