<p>I just want to know whether I can run Karate test in a pod. Or is there any good suggestion on how to run it?</p>

<p>I tried to run the Karate test in terminal and it works. Just want to know if I can run it from Kubernetes pod. Nginx also running in the pod.</p>

Chxk
<p>You can everything in pod whatever you are running outside environment. Pod run the container inside it.</p>

<p>So create the <code>docker file</code> and generate the <code>docker image</code> using docker file. Using that docker image and start the karate pod.</p>

<p>You can write the docker file like this </p>

<pre><code>FROM maven:3-jdk-8-alpine

RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

COPY settings.xml /usr/share/maven/ref/
COPY pom.xml /tmp/pom.xml

COPY . /usr/src/app

RUN mvn -B -f /tmp/pom.xml -s /usr/share/maven/ref/settings-docker.xml prepare-package -DskipTests

CMD ["/usr/src/app/maven_runner.sh"]
</code></pre>

<p>I found here one example : <a href="https://github.com/neillfontes/karate-sample" rel="nofollow noreferrer">https://github.com/neillfontes/karate-sample</a></p>
