Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

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.

Exam CKA topic 1 question 18 discussion

Actual exam question from CNCF's CKA
Question #: 18
Topic #: 1
[All CKA Questions]

SIMULATION
-






Task
-

Create a new nginx Ingress resource as follows:

• Name: ping
• Namespace: ing-internal
• Exposing service hi on path /hi using service port 5678

Show Suggested Answer Hide Answer
Suggested Answer: apiVersion: v1 kind: PersistentVolume metadata: name: app-data spec: capacity: storage: 2Gi accessModes: - ReadOnlyMany hostPath: path: "/srv/app-data"

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
abu7midan
Highly Voted 5 months, 1 week ago
k create ns ing-internal k create ingress ping --rule="/hi=hi:5678"
upvoted 6 times
GCPCloudArchitectUser
2 months, 2 weeks ago
kubectl create ingress ping --rule="/hi=hi:5678"
upvoted 1 times
Devops2023team
1 month, 2 weeks ago
Actually you need to specify namespace
upvoted 1 times
...
...
...
shure4shure
Most Recent 2 months, 2 weeks ago
This is pretty much the same question as number 17. Only thing different is the name. 18 Ping and 17 Pong. lol :)
upvoted 1 times
...
cp2323
5 months ago
Answer given by Admin is completely un-related. The answer is exactly same as question 17, only change name of the ingress to ping and path/name to /hi
upvoted 3 times
...
Vihar112
5 months ago
Create a YAML file named ping-ingress.yaml with the following content: apiVersion: 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 Apply this Ingress resource to your cluster: kubectl apply -f ping-ingress.yaml
upvoted 3 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
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.

SaveCancel
Loading ...