-
Notifications
You must be signed in to change notification settings - Fork 895
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
CRDs #5928
Comments
@sashalarsoo What installation method are you using? helm, karmada-operator or |
Here is the command i used : |
not the root cause, but if you failed with this error message, your can try following command instead: kubectl --context karmada-apiserver apply -k ~/karmada/crds --server-side=true pay attention to |
Is the kubeconfig and context for kubectl configured correctly? |
Thanks for the command actually i got the following output : I guess it partially worked because the apply on policy worked : |
Quick question : How could i differenciate two target clusters ?
The two members have the same "CLUSTER". However, there are my two targets clusters because my propagationpolicy worked and deployed nginx pods on the two clusters.
I just would like to differenciate the two clusters in the output. |
You can refer to the usage of karmadactl get inside the link |
Thanks a lot for the help ! |
you still have two crd not installed successful, is it convenient for you to reinstall karmada? I suggest you try: pay attention to set the value |
|
I'm trying to download crds before |
Thanks, it seems CRDs have been well installed ! |
I tried the following example : https://karmada.io/docs/userguide/cicd/working-with-flux/#helm-release-propagation.
but my chart doesnt deploy :
|
I succeed but the demo in the website is outdated. https://karmada.io/docs/userguide/cicd/working-with-flux/ |
thank you very much for pointing out the error! by the way, would you like to contribute a PR to correct the doc? If you are interested in it, you can refer to how to contribute docs. |
hi @sashalarsoo, we usually do like this:
|
Thanks ! |
Hey i'v got a final question. |
First, what does how about mark these jobs with different label? like some jobs with |
Check this: https://kubernetes.io/blog/2021/04/19/introducing-indexed-jobs/ |
Can index job define the starting index ? If not, the two member clusters will all get job indexed from 0 to 399, just like: ...
status:
completedIndexes: 0-399
completionTime: "2024-12-11T03:54:24Z" |
No we can't. So i think i want to pass env variable to a ressource in Karmada Propagationpolicy. Is it possible ? |
No Does the OverwritePolicy or ResourceInterpreter suitable to you? |
Perfect thanks ! |
I saw Karmada has a WorkloadRebalance ressource. |
In case of rebalancing because not enough nodes are available to scale in the cluster, could i intercept a payload before rebalancing ? I'd like to know when rebalancing the target cluster etc to update a state so basically i just want before rebalancing to get all the infos about the rebalancing. |
do you mean, you use static weight propagation prolicy just like: replicaScheduling:
replicaDivisionPreference: Weighted
replicaSchedulingType: Divided
weightPreference:
staticWeightList:
- targetCluster:
clusterNames:
- member1
weight: 1
- targetCluster:
clusterNames:
- member2
weight: 1
...... you has a deployment propagated to these four clusters, but pods in at this moment, you want to use answer: no, as for static weight strategy, even if rescheduled, the new scheduling result will still contain member1? Please tell me if it is the above scenario, and if so, we will discuss it further. |
Yeah in fact my deployment is a job with a completions attribute. This attribute says hey if 50 completions launch 50 jobs. Each job is made to go and request for one node. Each node must contain one job maximum. So if i have 50 jobs i have to scale 50 nodes. Sometimes it fails because there is a lack of available computers in the data center (for big numbers). So in this case i need to ensure that unprovisioned computers are provisionned in another cluster. |
Hi @sashalarsoo Yes, currently when propagating applications with |
My app is scaling so when using availablereplicas the scheduler takes count only of actual capacity of actual nodes and is blocking my deployment but the deployment would be handled by the autoscaler. |
What happened:
I installed karmada with a custom path. I joined my clusters to control plane. I can't create a propagationpolicy because of CRDs not found. The error :
If i go to the install dir of karmada, find a crd folder. I try to apply on all this CRD folder :
~/karmada/crds$ kubectl apply -f . error: error validating "kustomization.yaml": error validating data: [apiVersion not set, kind not set]; if you choose to ignore these errors, turn validation off with --validate=false
The text was updated successfully, but these errors were encountered: