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

[Improvement]It is recommended to set a resource limit on the jobs generated by kubeblocks #5839

Closed
wuxxfree opened this issue Nov 15, 2023 · 1 comment · Fixed by #5867
Closed
Assignees
Labels
kind/enhancement New feature or request
Milestone

Comments

@wuxxfree
Copy link
Contributor

It is recommended to set a resource limit on the jobs generated by kubeblocks, as some namespaces may have ResourceQuotas, and kubeblocks cannot generate pods when creating jobs, resulting in unsuccessful operations.
c319d1509205d706eacccfe7bb92930

@wuxxfree wuxxfree added the kind/enhancement New feature or request label Nov 15, 2023
@shanshanying shanshanying assigned shanshanying and unassigned nayutah Nov 15, 2023
@shanshanying
Copy link
Contributor

to reproduce the issue, we can

  1. create a resource quota
apiVersion: v1
kind: ResourceQuota
metadata:
  name: resource-quota
  namespace: default
spec:
  hard:
    count/deployments.apps: "9"
    count/statefulsets.apps: "99"
    cpu: "35"
    limits.cpu: "35"
    limits.memory: "85899345920"
    memory: "85899345920"
    persistentvolumeclaims: "99"
    pods: "99"
    requests.cpu: "35"
    requests.memory: "85899345920"
    requests.storage: "549755813888"
    resourcequotas: "1"
    services: "99"
  1. create a mysql cluster, by
kbcli cluster create mysql mycluster
  1. jobs will failed with following errmsg:
image

To cure this issue, we can set request fields for jobs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants