This message is only intended to help people facing the same problem than me :
I use a customized DockerFile previously found in https://github.com/denvazh/gatling (thanks btw)
Everything works well in Docker.
Then I built and uploaded my image to Kubernetes and deployed my pod containing the last version of Gatling.
When I launched gatling.sh -s MyClass I had this message :
The requested class ‘MyClass’ can not be found in the classpath or does not extends Simulation
But the MyClass.scala file was already in /opt/galing/user-files/simulations folder !
I removed the stdout redirection from the compliation command line in gatling.sh and here is the output :
Warning: Unknown option -s
Warning: Unknown argument ‘MyClass’
→ compilation fails silently, gatling program cannot find the compiled classes and cannot load simulations.
After having removed cpu and memory limits on my k8s pod, everything works like a charm !