K8s Ingress with NodePort¶
kubectl create namespace test-ingress-nodeport
kubectl apply -f examples-yaml/ingress-service/deployment.yml
kubectl apply -f examples-yaml/ingress-service/service.yml
kubectl apply -f examples-yaml/ingress-service/ingress.yml
kubectl describe svc hello-world-service -n test-ingress-nodeport
kubectl delete namespace test-ingress-nodeport
Troubleshooting¶
annotations:
kubernetes.io/ingress.class: public
Service was not accessible through ingress. Extra annotation solved the problem.