Create a deployment as follows:
Name: nginx-random
Exposed via a service nginx-random
Ensure that the service & pod are accessible via their respective DNS records
The container(s) within any pod(s) running as a part of this deployment should use the nginx Image
Next, use the utility nslookup to look up the DNS records of the service & pod and write the output to /opt/KUNW00601/service.dns and /opt/KUNW00601/pod.dns respectively.
Suggested Answer: A
Get Premium CKA Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
24 comments · newest first
TH
Theola
11 months ago
Totally agree, that’s a must for tracking!
EL
Elenor
11 months ago
Make sure to check the DNS records after!
KA
Katy
11 months ago
Wait, do we really need to write the output to those specific paths?
AU
Audra
11 months ago
I thought nginx was just for web serving, not for DNS stuff too?
LA
Lai
11 months ago
Just set up the nginx-random deployment!
BR
Brandon
12 months ago
I feel like I’ve seen this setup before in our labs, but I’m not 100% confident about the deployment name needing to match the service name exactly.
LA
Laticia
12 months ago
I definitely need to check the DNS records with nslookup, but I'm a bit confused about where to write the output files. Is it really /opt/KUNW00601?
LO
Louvenia
1 year ago
I practiced a similar question where we had to expose a service, but I can't recall if I need to specify the type of service for this one.
SE
Serina
1 year ago
I think I remember how to create a deployment, but I'm not entirely sure about the exact command syntax for the nginx image.
BI
Billye
1 year ago
Okay, let me think this through step-by-step. First, I'll create the deployment with the nginx image. Then I'll create a service to expose it. Finally, I'll use nslookup to verify the DNS records. I think I can handle this, but I'll double-check my work to make sure I don't miss anything.
GL
Glendora
1 year ago
No problem, I've done this kind of thing before. I'll create the deployment, expose it with a service, and then use nslookup to check the DNS records. As long as I follow the instructions carefully, I should be able to get this done quickly.
FE
Fernanda
1 year ago
Hmm, I'm a bit unsure about the specifics here. I'll need to review the Kubernetes documentation on deployments and services to make sure I'm doing this correctly. Hopefully I can figure it out in time.
KA
Kayleigh
1 year ago
This looks like a straightforward deployment task, but I'll need to be careful to get the details right. I'll start by creating the deployment and service, then use nslookup to verify the DNS records.
DU
Dudley
2 years ago
Exactly, and we need to make sure the service and pod are accessible via their DNS records.
LA
Lacey
2 years ago
The containers in the pods should use the nginx image, right?
ST
Stevie
2 years ago
This question is a good test of our Kubernetes knowledge. I'm confident I can nail this one, as long as I don't accidentally deploy a pod that runs on Internet Explorer. That would be a real disaster!
LO
Louis
2 years ago
Haha, I bet the exam proctors will be impressed if we include some witty comments. How about this one: 'Hey, at least they didn't ask us to create a deployment for a web server that serves cat memes!'
VE
Veronique
1 year ago
Haha, good one! It's always nice to inject some fun into technical tasks.
JO
Johanna
2 years ago
I agree, adding some humor can make the task more enjoyable.
MI
Mitsue
2 years ago
That would definitely lighten the mood during the exam!
DU
Dudley
2 years ago
Yes, and we should expose it via a service called nginx-random.
LA
Lacey
2 years ago
I think we need to create a deployment named nginx-random.
VA
Valentine
2 years ago
Using 'nslookup' to write the DNS records to the specified paths is a nice touch. Seems like a straightforward solution to me.
FL
Fletcher
2 years ago
The deployment name, service name, and container image are all specified correctly. This should work as expected.