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

PS-Operator cannot create ps-db-mysql and ps-db-orc StatefulSet when Resource Quota is enabled. #460

Open
xirehat opened this issue Jan 2, 2025 · 0 comments

Comments

@xirehat
Copy link

xirehat commented Jan 2, 2025

I set resources.limit and resources.requests for both mysql and orchestrator block:

  resources:
    requests:
      cpu: 4000m
      memory: 12G
    limits:
      cpu: 4000m
      memory: 12G

but I got this error when Resource Quota is enabled.

ps-db-mysql error:

create Pod app-db-ps-db-mysql-0 in StatefulSet app-db-ps-db-mysql failed error: pods "app-db-ps-db-mysql-0" is forbidden: failed quota: compute-resources-app: must specify limits.cpu for: mysql-init,xtrabackup; limits.memory for: mysql-init,xtrabackup; requests.cpu for: mysql-init,xtrabackup; requests.memory for: mysql-init,xtrabackup

ps-db-orc error:

create Pod app-db-ps-db-orc-0 in StatefulSet app-db-ps-db-orc failed error: pods "app-db-ps-db-orc-0" is forbidden: failed quota: compute-resources-app: must specify limits.cpu for: orc-init; limits.memory for: orc-init; requests.cpu for: orc-init; requests.memory for: orc-init

ps-operator logs:

ERROR Reconciler error {"controller": "ps-controller", "controllerGroup": "ps.percona.com", "controllerKind": "PerconaServerMySQL", "PerconaServerMySQL": {"name":"app-db-ps-db","namespace":"app"}, "namespace": "app", "name": "app-db-ps-db", "reconcileID": "079585dd-a2cc-4167-8e7e-f2fd53da1b65", "error": "reconcile: database: failed to get current sts: StatefulSet.apps \"app-db-ps-db-mysql\" not found", "errorVerbose": "StatefulSet.apps \"app-db-ps-db-mysql\" not found\nfailed to get current sts
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).reconcileHandler
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:324
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).processNextWorkItem
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:261
sigs.k8s.io/controller-runtime/pkg/internal/controller.(*Controller).Start.func2.2
/go/pkg/mod/sigs.k8s.io/[email protected]/pkg/internal/controller/controller.go:222
INFO reconcileReplication orchestrator is not ready. skip {"controller": "ps-controller", "controllerGroup": "ps.percona.com", "controllerKind": "PerconaServerMySQL", "PerconaServerMySQL": {"name":"app-db-ps-db","namespace":"app"}, "namespace": "app", "name": "app-db-ps-db", "reconcileID": "ceb69aa6-df84-43bf-b93a-247d07b8e396", "ready": 0}

Percona helm chart version: 0.8.0

Kubernetes version: v1.30.4

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant