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 8 months, 1 week ago
k create ns ing-internal k create ingress ping --rule="/hi=hi:5678"
upvoted 6 times
GCPCloudArchitectUser
5 months, 2 weeks ago
kubectl create ingress ping --rule="/hi=hi:5678"
upvoted 1 times
Devops2023team
4 months, 1 week ago
Actually you need to specify namespace
upvoted 1 times
...
...
...
Elvi13
Most Recent 2 months ago
do y need to crate a service? like : apiVersion: v1 kind: Service metadata: name: hi namespace: ing-internal spec: selector: app: hi ports: - protocol: TCP port: 5678 targetPort: 5678 and after the ingres?
upvoted 1 times
...
shure4shure
5 months, 1 week 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
8 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
8 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 ...
ex Want to SAVE BIG on Certification Exam Prep?
close
ex Unlock All Exams with ExamTopics Pro 75% Off
  • arrow Choose From 1000+ Exams
  • arrow Access to 10 Exams per Month
  • arrow PDF Format Available
  • arrow Inline Discussions
  • arrow No Captcha/Robot Checks
Limited Time Offer
Ends in