我曾经使用流动docker runcmd:运行wiremock图像
docker run -it -p 8787:8787 rodolpheche/wiremock --port 8787 --verbose
现在我正试图使用kubectl runcmd在Kubernetes中运行它,下面的一个成功运行
kubectl run wiremock --image=rodolpheche/wiremock
但是我不能用自定义cmd来运行它--端口8787—详细";,我也尝试了下面的选项,但我无法使用这些特定选项运行wiremock容器"--端口8787——详细的";
# Start container using a different command and custom arguments.
kubectl run wiremock --image=rodolpheche/wiremock --command -- <cmd> <arg1> ... <argN>
有没有办法在Kubernetes的8787端口上使用verbose选项运行它?
kubectl run wmock --image rodolpheche/wiremock --port 8787 -- --port 8787 --verbose
如果能做到这一点,这将创建一个在端口8787上运行的带有详细标志的wiremock的单个pod:
k exec -it wmock -- /bin/bash
root@wmock:/home/wiremock#
...
root@wmock:/home/wiremock# ps aux
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 1 0.4 1.9 3370684 78964 ? Ssl 18:37 0:02 java -cp /var/wiremock/lib/*:/var/wiremock/extensions/* com.github.tomakehurst.wiremock.standalone.WireMockServerRunner --port 8787 --verbose