Hello I am new to wiremock and trying to install t...
# help
p
Hello I am new to wiremock and trying to install through helm on my local. I am seeing this error when trying to hit the test endpoint.
l
Could you copy and paste the error here instead of posting a screenshot?
p
NORPPATEL:helm-charts ppatel1$ helm upgrade --install wiremock ./charts/wiremock Release "wiremock" does not exist. Installing it now. NAME: wiremock LAST DEPLOYED: Tue Jun 18 155721 2024 NAMESPACE: default STATUS: deployed REVISION: 1 TEST SUITE: None NOTES: 1. Get the application URL by running these commands: export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=wiremock,app.kubernetes.io/instance=wiremock" -o jsonpath="{.items[0].metadata.name}") kubectl port-forward $POD_NAME 8080:9021 echo "Visit http://127.0.0.1:8080/__admin/mappings to use your application" run "curl -X POST http://127.0.0.1:8080/v1/hello" NORPPATEL:helm-charts ppatel1$ export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=wiremock,app.kubernetes.io/instance=wiremock" -o jsonpath="{.items[0].metadata.name}") NORPPATEL:helm-charts ppatel1$ kubectl port-forward $POD_NAME 8080:9021 error: unable to forward port because pod is not running. Current status=Pending NORPPATEL:helm-charts ppatel1$ kubectl port-forward $POD_NAME 8080:9021 Forwarding from 127.0.0.1:8080 -> 9021 Forwarding from [:1]8080 -> 9021 ^CNORPPATEL:helm-charts ppatel1$ NORPPATEL:helm-charts ppatel1$ echo "Visit http://127.0.0.1:8080/__admin/mappings to use your application" Visit http://127.0.0.1:8080/__admin/mappings to use your application NORPPATEL:helm-charts ppatel1$ curl -X POST http://127.0.0.1:8080/v1/hello curl: (7) Failed to connect to 127.0.0.1 port 8080 after 0 ms: Couldn't connect to server NORPPATEL:helm-charts ppatel1$ export POD_NAME=$(kubectl get pods --namespace default -l "app.kubernetes.io/name=wiremock,app.kubernetes.io/instance=wiremock" -o jsonpath="{.items[0].metadata.name}") NORPPATEL:helm-charts ppatel1$ curl -X POST http://127.0.0.1:8080/v1/hello curl: (7) Failed to connect to 127.0.0.1 port 8080 after 0 ms: Couldn't connect to server @Lee Turner
l
It is difficult to tell whether this is a WireMock issue or a k8s port forwarding issue. Do you see any errors in the logs for the WireMock pod?