mindwm / mindwm-gitops

6 stars 5 forks source link

Context CRD apply fail due the cpu requests (4 cores) on the staging environment #31

Closed metacoma closed 4 months ago

metacoma commented 4 months ago

After

$ kubectl apply -f resources/context.yaml

kafka-source-dispatcher-0 and neo4 requires 1 cpu core

$ kubectl describe node
...
 knative-eventing            kafka-source-dispatcher-0                                    1 (25%)       2 (50%)     700Mi (2%)       1000Mi (3%)    7m44s
Allocated resources:
  (Total limits may be over 100 percent, i.e., overcommitted.)
  Resource           Requests      Limits
  --------           --------      ------
  cpu                3820m (95%)   10100m (252%)
  memory             7822Mi (24%)  11490Mi (35%)
  ephemeral-storage  0 (0%)        0 (0%)
  hugepages-2Mi      0 (0%)        0 (0%)
$ kubectl -n context-team-a get pods
NAME             READY   STATUS    RESTARTS   AGE
team-a-neo4j-0   0/1     Pending   0          12m
$ kubectl -n context-team-a describe pod team-a-neo4j-0
  Warning  FailedScheduling  12m                default-scheduler  0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.
  Warning  FailedScheduling  11m (x2 over 11m)  default-scheduler  0/1 nodes are available: 1 Insufficient cpu. preemption: 0/1 nodes are available: 1 No preemption victims found for incoming pod.