prometheus-operator / kube-prometheus

Use Prometheus to monitor Kubernetes and applications running on Kubernetes
https://prometheus-operator.dev/
Apache License 2.0
6.73k stars 1.93k forks source link

how to not use cpu requst & limit ? #2387

Closed pycgo closed 1 month ago

pycgo commented 7 months ago

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 commented 7 months ago

any one help me? thank you

github-actions[bot] commented 5 months ago

This issue has been automatically marked as stale because it has not had any activity in the last 60 days. Thank you for your contributions.

github-actions[bot] commented 1 month ago

This issue was closed because it has not had any activity in the last 120 days. Please reopen if you feel this is still valid.