Is there an alternative to JMeter GUI and CLI to execute JMeter tests in Kubernetes without "kubectl exec"?

7/23/2019

I have JMeter running as a Docker container in a Kubernetes cluster. My company's K8s team disallows calling kubectl exec because they don't want teams to ssh into a running container in a pod. What alternatives exist to calling bin/jmeter with params? Is there a http endpoint that can be created which can call the cli in turn? How would I implement such an API?

-- Jai
exec
jmeter
kubectl
kubernetes

1 Answer

8/27/2019

The recommended approach in this case where kubectl exec is blocked is to create a proxy web service that would make calls to the JMeter CLI. The complete Dockerized solution with helm chart for K8s deployment is posted here - JMeter_webservice_Kubernetes

-- Jai
Source: StackOverflow