SIMULATION
Create a namespace called 'development' and a pod with image nginx called nginx on this namespace.
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
kubectl create namespace development
kubectl run nginx --image=nginx --restart=Never -n development
30 comments · newest first
FE
Felton
6 months ago
And then `kubectl run nginx --image=nginx -n development`!
EV
Evangelina
7 months ago
Just remember `kubectl create namespace development`.
JE
Jessenia
7 months ago
What if I forget the syntax?
MI
Mitsue
7 months ago
I think I can nail the namespace part.
OR
Ora
7 months ago
I feel confident about it.
QU
Queen
7 months ago
I thought we were using Apache for this project?
IS
Isaiah
8 months ago
Totally agree, nginx is lightweight and efficient!
TY
Tyisha
8 months ago
Wait, are we sure nginx is the best option here?
AU
Audrie
8 months ago
Nginx is a solid choice for the pod image.
TA
Tayna
8 months ago
Just created the 'development' namespace!
AR
Arthur
9 months ago
Haha, this is like a rite of passage for any Kubernetes enthusiast. Let's do this!
CA
Candra
9 months ago
Wait, do I need to create the namespace first? Better double-check the docs.
NI
Nikita
9 months ago
Piece of cake! I'll have that pod up and running in no time.
BO
Bong
9 months ago
I feel confident about the namespace part, but I need to double-check how to set the image correctly for the pod.
ED
Eden
9 months ago
Creating a namespace should be straightforward, but I might mix up the flags for the pod creation.
AL
Almeta
10 months ago
I practiced something similar last week, but I can't recall if I need to specify the namespace in the pod creation command.
AL
Alonso
10 months ago
I think I remember how to create a namespace, but I'm not entirely sure about the exact command syntax for the pod.
AV
Avery
10 months ago
Namespaces can be a bit tricky, but I think I've got a good handle on it. I'll work through this step-by-step to make sure I don't miss anything.
KR
Kristeen
10 months ago
No problem, I've done this kind of task before. I'll just need to remember the right commands to create the namespace and deploy the pod.
PE
Pearly
10 months ago
Creating a namespace and a pod should be easy enough. I'll make sure to pay attention to the pod name and image requirements.
LY
Lynelle
10 months ago
Hmm, I think I've seen this one before. Time to put my Kubernetes skills to the test!
ST
Stevie
11 months ago
This is a straightforward question, I can do this in my sleep!
SH
Shelton
11 months ago
This question is tricky!
DE
Devorah
11 months ago
Hmm, I'm not too familiar with namespaces. Let me double-check the syntax for that. Hopefully, I can figure it out during the exam.
RO
Rosenda
12 months ago
Okay, this seems straightforward. I'll start by creating the namespace, then deploy the nginx pod in that namespace.
JU
Juan
6 months ago
You can use `kubectl get pods -n development` for that.
KA
Karrie
6 months ago
Don't forget to check the pod status!
RO
Rolland
6 months ago
Then run `kubectl run nginx --image=nginx --namespace=development`.
KA
Kasandra
11 months ago
Sounds easy enough!
RO
Rory
11 months ago
Just use `kubectl create namespace development`.