exam questions

Exam CKA All Questions

View all questions & answers for the CKA exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
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 7 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 3 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago