chaosblade-io / chaosblade-operator

chaosblade operator for kubernetes experiments
Apache License 2.0
160 stars 101 forks source link

Pod-pod fail doesn't work while have an image named xx-fault-injection #61

Open anyuan95 opened 3 years ago

anyuan95 commented 3 years ago

Issue Description

while i execute such command:

blade create k8s pod-pod fail --timeout 100 --namespace test --labels k8s-app=client-demo --kubeconfig /root/.kube/config

and, the target pod use image 'myharbor.com/basic/client-demo:v1', and, there is also an image with name 'myharbor.com/basic/client-demo:v1-fault-injection' in my harbor,

Describe what happened (or what feature you want)

at this time, the 'pod-pod fail' experiment doesn't work.

Describe what you expected to happen

maybe we could use a pause image to do the 'pod-pod fail' experiment?

Tell us your environment

[root@master3 ~]# kubectl version Client Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.8", GitCommit:"211047e9a1922595eaa3a1127ed365e9299a6c23", GitTreeState:"clean", BuildDate:"2019-10-15T12:11:03Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"14", GitVersion:"v1.14.8", GitCommit:"211047e9a1922595eaa3a1127ed365e9299a6c23", GitTreeState:"clean", BuildDate:"2019-10-15T12:02:12Z", GoVersion:"go1.12.10", Compiler:"gc", Platform:"linux/amd64"}

chaosblade-operator: 0.9.0

tiny-x commented 3 years ago

After you execute the command, is the pod still in the state of RUNNING ?