Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.
Task - Create a new nginx Ingress resource as follows: ✑ Name: pong ✑ Namespace: ing-internal ✑ Exposing service hello on path /hello using service port 5678
I have seen several commands listed here but it states it is for nginx so you need to add the nginx annotation like so:
k create ing pong -n ing-internal --rule="/hello=hello:5678" --annotation="nginx.ingress.kubernetes.io/rewrite-target=/"
Also the debate of pathType:
I think the pathType should be exact because the path given is /hello and not /hello*
If you disagree and feel that pathType should be Prefix then your command would look like this:
k create ing pong -n ing-internal --rule="/hello*=hello:5678" --annotation="nginx.ingress.kubernetes.io/rewrite-target=/"
From other forums I can see some people struggled with this question though it seems very simple. The first thing I would check is to search for the existence of a ingress-controller pod and ingress-controller service. The ingress-controller is mandatory for a ingress to work.
I wonder what is the catch with this (easy) question?
How to troubleshoot in case kubectl get ing does not show the ADDRESS?
Like in this example:
NAME CLASS HOSTS ADDRESS PORTS AGE
test-ingress external-lb * 203.0.113.123 80 59s
How the Ingress IngressClass is added? Is it needed to add IngressClass? The question does not mention IngressClass name. https://kubernetes.io/docs/concepts/services-networking/ingress/#default-ingress-class
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
karsstars
Highly Voted 1 year, 4 months agodhereish
11 months agodirkdirkdirk
Highly Voted 1 year, 2 months agoLilyNaMeli
1 year agokubebaba
Most Recent 2 months, 1 week agoyeshu007
1 month, 2 weeks agofc146fc
2 months, 2 weeks ago[Removed]
7 months agoShenannigan
8 months, 1 week agoyeshu007
1 month, 2 weeks agoiiiaz
9 months agoreal111
9 months, 1 week agoiiiaz
9 months, 3 weeks agoNurbol
9 months, 4 weeks agoPratham123
9 months, 3 weeks agokopper2019
12 months agoNicky88
1 year, 1 month agoNicky88
1 year, 1 month agoTradeLabelSoftware
1 year, 2 months agomellohello
10 months, 3 weeks agoBarcodeMaker
1 year, 2 months agoTemitopeWalker
1 year, 5 months agoTemitopeWalker
1 year, 5 months ago