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

The k8s pod-cpu injection shows success, but it does not actually take effect #208

Open
yi-guo-546 opened this issue May 24, 2023 · 1 comment

Comments

@yi-guo-546
Copy link

Issue Description

Type: *The k8s pod-cpu injection shows success, but it does not actually take effect

Describe what happened (or what feature you want)

I use the command to create pod-cpu experiment: ./blade create k8s pod-cpu load --names test --kubeconfig ~/.kube/config --namespace default --timeout 60

Describe what you expected to happen

the command return 200 success, but the pod's cpu don't change

How to reproduce it (as minimally and precisely as possible)

  1. ./blade create k8s pod-cpu load --names test --kubeconfig ~/.kube/config --namespace default --timeout 60
  2. crictl stats or kubectl top pod

Tell us your environment

chaosblade: 1.7.1
chaosblade-tool: 1.7.1
k8s version: v1.23.6

Anything else we need to know?

In addition to pod cpu, memory, disk, etc. have not taken effect. In addition, the cpu/memory/disk in the container scenario does not take effect

@binbin0325
Copy link
Member

It is recommended to use container cpu load. pod cpu load uses the first container found by default. The pod cpu usage may not be observed through the pod top

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

2 participants