bitpoke / mysql-operator

Asynchronous MySQL Replication on Kubernetes using Percona Server and Openark's Orchestrator.
https://www.bitpoke.io/docs/mysql-operator/getting-started/
Apache License 2.0
993 stars 275 forks source link

Support default resource of init container #908

Closed drivebyer closed 7 months ago

drivebyer commented 9 months ago

ISSUE description:

  1. create ns resource quota:
    apiVersion: v1
    kind: ResourceQuota
    metadata:
    name: quota-mcamel-system
    namespace: mcamel-system
    spec:
    hard:
    requests.cpu: "1"
    requests.memory: "1Gi"
    limits.cpu: "10"
    limits.memory: "20Gi"
  2. create mysql cluster

pod does not craeted as expected, statefulset event shows:

Events:
   Type     Reason        Age                 From                    Message
   ----     ------        ----                ----                    -------
   Warning  FailedCreate  10m (x21 over 65m)  statefulset-controller  create Pod wy-mysql-1-mysql-0 in StatefulSet wy-mysql-1-mysql failed error: pods "wy-mysql-1-mysql-0" is forbidden: failed quota: quota-mcamel-system: must specify limits.cpu,limits.memory,requests.cpu,requests.memory

drivebyer commented 9 months ago

@cndoit18 PTAL