I am trying to do some test over the creation of scaleobjects for Keda. I am using extension for Kubernetes and Disruptor as we want to add some delay to the metrics server
Hey @Avivanco, happy to help you troubleshoot this. Something that could cause this error message is the IP address for the pod you’re trying to disrupt being 127.0.0.1.
Can you share with us the spec of the pod (or pods) you’re trying to disrupt, which I understand they should be the metrics-server pods? The output of kubectl get pod -o yaml pod-name-here should suffice.
Hi @Avivanco could you please confirm the version of disruptor you are using? You mention you are also using the Kubernetes extension, so I’m guessing you are using a custom k6 build. If this is the case the following command should list the version for all extensions:
thanks Pablo!
I have tested the new release and with podDisruptor is working fine but with ServiceDisruptor it gives another error:
ERRO[0026] GoError: error injecting fault: error invoking agent: command terminated with exit code 1
DestinationPort (8080) and RedirectPort (8080) must be different
I tried with port configured in the fault and without. In both scenarios with the same error.
The problem is that by default the agent is listening to the port 8080 which is the same port that the pod is listening to. You can use the proxyPort option. Please don’t pay attention to the documentation that states the default is 8000 because it is actually 8080 and we are fixing it