Configure Kind Ingress Nodeport
Configure Kind Ingress Nodeport
Configure Kind Ingress Nodeport
# Verify installation
kubectl get pods -n ingress-nginx \
-l app.kubernetes.io/name=ingress-nginx --watch
POD_NAMESPACE=ingress-nginx
POD_NAME=$(kubectl get pods -n $POD_NAMESPACE -l app.kubernetes.io/name=ingress-
nginx --field-selector=status.phase=Running -o
jsonpath='{.items[0].metadata.name}')
# Let’s expose the Ingress NodePorts by creating two instances of socat for port 80
and 443
for port in 80 443
do
node_port=$(kubectl get service -n ingress-nginx ingress-nginx
-o=jsonpath="{.spec.ports[?(@.port == ${port})].nodePort}")