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

[CapacityReservations] Memory is calculated incorrectly #107

Closed
ellistarn opened this issue Nov 3, 2020 · 0 comments
Closed

[CapacityReservations] Memory is calculated incorrectly #107

ellistarn opened this issue Nov 3, 2020 · 0 comments
Labels
bug Something isn't working

Comments

@ellistarn
Copy link
Contributor

30 pods x 30Gi should be 900Gi memory but isn't.

status:
  conditions:
  - lastProbeTime: null
    lastTransitionTime: "2020-11-03T20:21:51Z"
    message: '0/5 nodes are available: 1 Insufficient cpu, 5 Insufficient memory.'
    reason: Unschedulable
    status: "False"
    type: PodScheduled
  phase: Pending
  qosClass: Burstable
➜  karpenter-aws-demo git:(main) ✗ k get metricsproducers.autoscaling.karpenter.sh -oyaml
apiVersion: v1
items:
- apiVersion: autoscaling.karpenter.sh/v1alpha1
  kind: MetricsProducer
  metadata:
    annotations:
      kubectl.kubernetes.io/last-applied-configuration: |
        {"apiVersion":"autoscaling.karpenter.sh/v1alpha1","kind":"MetricsProducer","metadata":{"annotations":{},"name":"demo","namespace":"default"},"spec":{"reservedCapacity":{"nodeSelector":{"eks.amazonaws.com/nodegroup":"default"}}}}
    creationTimestamp: "2020-11-03T18:29:41Z"
    generation: 1
    name: demo
    namespace: default
    resourceVersion: "41164"
    selfLink: /apis/autoscaling.karpenter.sh/v1alpha1/namespaces/default/metricsproducers/demo
    uid: b14f6248-febc-4f3d-9041-5361f7abe4d7
  spec:
    reservedCapacity:
      nodeSelector:
        eks.amazonaws.com/nodegroup: default
  status:
    conditions:
    - lastTransitionTime: "2020-11-03T18:29:41Z"
      status: "True"
      type: Active
    - lastTransitionTime: "2020-11-03T18:29:41Z"
      status: "True"
      type: Calculable
    - lastTransitionTime: "2020-11-03T18:29:41Z"
      status: "True"
      type: Ready
    reservedCapacity:
      cpu: 62%, 24050m/40
      memory: 4%, 6354Mi/161634452Ki
      pods: 14%, 41/290
kind: List
metadata:
  resourceVersion: ""
  selfLink: ""
@tabern tabern added the bug Something isn't working label Nov 18, 2020
gfcroft pushed a commit to gfcroft/karpenter-provider-aws that referenced this issue Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants