ExamGecko
Question list
Search
Search

List of questions

Search

Question 55 - CKA discussion

Report
Export

Score: 7%

Task

Create a new nginx Ingress resource as follows:

• Name: ping

• Namespace: ing-internal

• Exposing service hi on path /hi using service port 5678

A.
See the solution below.
Answers
A.
See the solution below.
Suggested answer: A

Explanation:

Solution:

vi ingress.yaml

#a

piVersion: networking.k8s.io/v1

kind: Ingress

metadata:

name: ping

namespace: ing-internal

spec:

rules:

- http:

paths:

- path: /hi

pathType: Prefix

backend:

service:

name: hi

port:

number: 5678

# kubectl create -

f

ingress.yaml

asked 18/09/2024
wendy brouwer
38 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first