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

General Cluster Resource Modeling in newer versions of Karmada #4962

Open
SeekerRook opened this issue May 18, 2024 · 4 comments
Open

General Cluster Resource Modeling in newer versions of Karmada #4962

SeekerRook opened this issue May 18, 2024 · 4 comments
Labels
kind/question Indicates an issue that is a support question.

Comments

@SeekerRook
Copy link

Please provide an in-depth description of the question you have:
Is there a way to disable Customized Cluster Resource Models and use General Cluster Resource Models, as described in the documentation? As far as I understand from the docs, Customized Cluster Resource Models are enabled by default in newer versions of Karmada, but I can't find a way to disable it.

Am I missing something or is there no way to use General Cluster Resource Models?

What do you think about this question?:

Environment:

  • Karmada version: 1.8
  • Kubernetes version: v1.29.4
  • Others: Member Clusters: v1.29.4+k3s1
@SeekerRook SeekerRook added the kind/question Indicates an issue that is a support question. label May 18, 2024
@RainbowMango
Copy link
Member

Please refer to Disable Cluster Resource Modeling.

I wonder the reason why you need to disable it. By the way.

@SeekerRook
Copy link
Author

SeekerRook commented May 20, 2024

Please refer to Disable Cluster Resource Modeling.

Thanks for the reply! I thought this section referred to disabling resource modeling altogether (both General and Customised). I will check it out.

I wonder the reason why you need to disable it. By the way.

I have a testing environment with small vm clusters. Customised modeling does not calculate the resources correctly without a lot of fine-tuning of the Grades. Since my clusters are all single node clusters I thought of disabling it, as I assume it will compute the available resources correctly.

@SeekerRook
Copy link
Author

Hello again. I tried the solution but didn't resolve my issue. It still has the same behaviour as before. What I did was run kubectl edit deploy/karmada-controller-manager -n karmada-system and then modify command to look like this

- command:
        - /bin/karmada-controller-manager
        - --kubeconfig=/etc/kubeconfig
        - --bind-address=0.0.0.0
        - --cluster-status-update-frequency=10s
        - --secure-port=10357
        - --enable-cluster-resource-modeling=false
        - --v=4

After that I unjoined and joined the clusters again. The system behaves the same as before, just with the default customized resource model instead of the one I had modified (which makes sense since I rejoined the clusters). Am I doing something wrong? Is there a way to make sure it uses Generalised resource models instead of the Customised ones?

@mszacillo
Copy link

I'm seeing the same behavior - I'd like to use the general resource model but disabling the custom cluster resource modeling in controller-manager seems to have no effect.

In my use case we'll be scheduling CRDs which get intercepted by operators installed on each member cluster and will schedule a variety of resources for that CRD. As a result, we just want a generalized picture of the allocatable resources on the cluster.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/question Indicates an issue that is a support question.
Projects
None yet
Development

No branches or pull requests

3 participants