prometheus-operator / kube-prometheus

Use Prometheus to monitor Kubernetes and applications running on Kubernetes

Home Page:https://prometheus-operator.dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to not use cpu requst & limit ?

pycgo opened this issue · comments

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?