I'm learning k8s & nodePort
- made 1 master node & 1 worker node at AWS EC2
- installed k8s, kubeadm
- Use flannel CNI
- deployed a nodejs app. with port 3000
- Attach a nodePort to nodejs app. so, 3000:31000
- I expected that i access to that nodejs app outside ec2 with url : "[master-node-pub-ip]:31000"
- But i can't access to "[master-node-pub-ip]:31000" and can access with "[worker-node-pub-ip]:31000"
I don't know what did i wrong...
How can i access that nodejs app via master nodes ip??
Thank you.