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

how to not use cpu requst & limit ? #2387

Open
pycgo opened this issue Mar 28, 2024 · 1 comment
Open

how to not use cpu requst & limit ? #2387

pycgo opened this issue Mar 28, 2024 · 1 comment

Comments

@pycgo
Copy link

pycgo commented Mar 28, 2024

k8s 1.28 centos 7.9 kernel 5.4.225-200 cri-o-1.28.4

kube-prometheus-0.13.0

Deployment Results

[root@node1 manifests]# kubectl -n monitoring get pods
NAME                                   READY   STATUS                      RESTARTS   AGE
alertmanager-main-0                    0/2     Init:CreateContainerError   0          7m28s
alertmanager-main-1                    0/2     Init:CreateContainerError   0          7m28s
alertmanager-main-2                    0/2     Init:CreateContainerError   0          7m28s
blackbox-exporter-56b5495dd8-cp4sk     3/3     Running                     0          7m34s
grafana-59964c48c8-jtz2s               1/1     Running                     0          7m33s
kube-state-metrics-588458f846-hs8td    3/3     Running                     0          7m33s
node-exporter-44k7f                    2/2     Running                     0          7m32s
prometheus-adapter-656cb75df5-mdfgt    1/1     Running                     0          7m31s
prometheus-adapter-656cb75df5-pl82w    1/1     Running                     0          7m31s
prometheus-k8s-0                       0/2     Init:CreateContainerError   0          7m27s
prometheus-k8s-1                       0/2     Init:CreateContainerError   0          7m27s
prometheus-operator-77fbcd8747-89wxz   2/2     Running                     0          7m31s

reason

Error: container create failed: sd-bus call: Cannot set property CPUQuotaPeriodUSec

now alertmanager-main-0 and prometheus-k8s-0 has cpu requst & limit

    Limits:
      cpu:     10m
      memory:  50Mi
    Requests:
      cpu:     10m
      memory:  50Mi

and help this no cpu here will be good for my k8s

    Limits:
      memory:  50Mi
    Requests:
      memory:  50Mi

how can i do?

@pycgo
Copy link
Author

pycgo commented Apr 3, 2024

any one help me? thank you

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

No branches or pull requests

1 participant