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?
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