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.
dirkdirkdirk
Highly Voted 1 year, 2 months agoLilyNaMeli
1 year, 1 month agokarsstars
Highly Voted 1 year, 5 months agodhereish
11 months, 4 weeks agokubebaba
Most Recent 3 months agoyeshu007
2 months, 1 week agofc146fc
3 months, 1 week ago[Removed]
7 months, 4 weeks agoShenannigan
9 months agoyeshu007
2 months, 1 week agoiiiaz
10 months agoreal111
10 months, 1 week agoiiiaz
10 months, 2 weeks agoNurbol
10 months, 3 weeks agoPratham123
10 months, 3 weeks agokopper2019
1 year agoNicky88
1 year, 2 months agoNicky88
1 year, 2 months agoTradeLabelSoftware
1 year, 3 months agomellohello
11 months, 2 weeks agoBarcodeMaker
1 year, 3 months agoTemitopeWalker
1 year, 6 months agoTemitopeWalker
1 year, 6 months ago