This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Trying to run on kind NodePort. Cannot find GW_IP #856
Labels
question
Further information is requested
I'm trying to test this out on kind on WSL2 windows localhost. Everything (seems to) work until I need the
GW_IP
and I can't find it.TLDR: I got it working with port-forward AND gateway - but (and this is probably my lack of k8s knowledge) but I don't understand why I need port forward AND gateway. I don't need port forward with an nginx ingress and I thought gateway replaced ingress?
Here's what I'm doing:
Where
config.yaml
:Note: I don't think that
kubeadmConfigPatches
block is necessary - it is just left over from a different cluster - but I don't think it will affect anything in this demo.Then I follow the instructions exposing as a
NodePort
.As I say, everything appears to go fine.
Then I jump into the cafe example.
First thing it asks me to do is save
GW_IP
into a variable - but doesn't explain how I retrieve that value.Then it asks to save
GW_PORT
- again with no indication of where I retrieve that value - but I assume it's80
?Any pointers or assistance you can provide would be great!
Happy to raise PRs if we identify docs improvements.
Debugging
Got it working inside cluster
This command shows an IP address of
10.244.0.8
so changing gateway:hostname: "10.244.0.8.nip.io"
and gateway hosts to the same value, I can at least get to the endpoints from within the cluster:Working Config
NodePort
servicekubectl -n nginx-gateway port-forward 80:80 443:443 svc/nginx-gateway
127.0.0.1.nip.io
curl http://127.0.0.1.nip.io/tea
andcurl http://127.0.0.1.nip.io/coffee
worksBut I have NO idea why I need port-forward AND a gateway. It seems to partially defeat the purpose. I don't need to port forward with an nginx ingress - and I thought gateway was a replacement?
The text was updated successfully, but these errors were encountered: