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

K8s资源限制设置limit未设置request会导致request默认等于limit造成资源浪费 #16

Open
Ouyangan opened this issue Sep 8, 2021 · 0 comments

Comments

@Ouyangan
Copy link
Owner

Ouyangan commented Sep 8, 2021

命令行扫描k8s中限制CPU request的所有应用

kubectl get po --all-namespaces -o=jsonpath="{range .items[*]}{.metadata.namespace}:{.metadata.name}{'\n'}{range .spec.containers[*]}  {.name}:{.resources.requests.cpu}{'\n'}{end}{'\n'}{end}" > 1.txt

kubernetes/kubernetes#17512

@Ouyangan Ouyangan changed the title 扫描k8s中启用了cpu限制的应用列表 命令行扫描k8s中启用了限制CPU request所有应用 Sep 9, 2021
@Ouyangan Ouyangan changed the title 命令行扫描k8s中启用了限制CPU request所有应用 K8s资源限制设置limit未设置request会导致request默认等于limit造成资源浪费 Sep 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant