kube-prometheus
kube-prometheus copied to clipboard
Seeting CPU limits for container in the k8s resource
I would like to set cpu limit for a specific container kube-rbac-proxy-main
which is not the default one - in the k8s resource - kube-state-metrics
in jsonnet, as currently, I am experiencing some CPU throttling.
how do I go about it.
Answered in slack: https://kubernetes.slack.com/archives/CFFDS2Z7F/p1646219889287799
From the Slack Thread:
{
values: {
kubeStateMetrics+:
kubeRbacProxySelf+: {
resources+: {
limits: {
cpu: '100m',
},
},
},
},
},
}
@paulfantom commented:
Then it doesn't have logic from https://github.com/prometheus-operator/kube-prometheus/pull/1637 which is needed for this.
This means release-0-10
won't work.
I ran into the same issue. Maybe the default cpu limits should be increased?
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.
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.