Shlomy Sheps

03/12/2023, 3:28 PM
hi. I setup a wiremock inside a pod in kubernetes. is it possible to configure the wiremock (running on the pod) with java code that run from outside the kubernetes cluster? (or i must use the APIs..) the reason for that is that the test for setting up the wiremock is executed from a runner in gitlab ci. (external to the kubernetes cluster) the access to the pod will be available by setting an ingress to the pod.
the solution for that is using the WireMock class as a client and connecting to the pod. had to define ingress on kubernetes
private WireMock wiremock = new WireMock("https","<|>", 443);