jkube
jkube copied to clipboard
[Maven Quickstarts]: hello-world curl request fails
Component
Kubernetes Maven Plugin
Task description
Description
Hey team, apologies if this is not the right type. This seems to be a docs issue potentially rather than anything else.
Running the helloworld quickstart curl
test does not return any response.
I've ran all the steps in the README.md for the helloworld quick start. I can see the pod running no issues, however when running the curl
test I get a "Couldn't connect to server" error.
❯ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
helloworld NodePort 10.106.132.58 <none> 8080:32374/TCP 57s
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 27m
❯ curl $(minikube ip):$(kubectl get svc helloworld -n default -o jsonpath='{.spec.ports[].nodePort}')
curl: (28) Failed to connect to 192.168.58.2 port 32374 after 75002 ms: Couldn't connect to server
I found a related issue with Micronaut https://github.com/eclipse-jkube/jkube/issues/1429, in the helloworld example as well we might want to update the docs once I can get it running 😄
Expected Behavior
Running the helloworld quickstart curl
Hello World
Acceptance Criteria
- [ ] hello-work runs locally
- [ ] docs are updated replacing the hardcoded node port with the
kubectl
command