Refer to Exhibit.

Task
Create a new deployment for running.nginx with the following parameters;
* Run the deployment in the kdpd00201 namespace. The namespace has already been created
* Name the deployment frontend and configure with 4 replicas
* Configure the pod with a container image of lfccncf/nginx:1.13.7
* Set an environment variable of NGINX__PORT=8080 and also expose that port for the container above
Suggested Answer: A
Get Premium CKAD Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
25 comments · newest first
JE
Jeniffer
4 months ago
Remember to check the namespace! It’s crucial for this task.
LA
Lai
4 months ago
I’m worried about the environment variable. Hope I get it right!
LO
Lonna
4 months ago
I feel confident about the deployment part. Just need to focus on the replicas.
XU
Xuan
6 months ago
This question is tricky! I hope I remember the syntax.
FL
Florencia
6 months ago
I thought we were using a different image for this project?
SH
Shannan
6 months ago
Sounds good, but make sure the namespace is correct!
MA
Marvel
6 months ago
Wait, why 8080? Isn't 80 the default for NGINX?
GA
Galen
6 months ago
Totally agree, 4 replicas are a solid choice!
JA
Janna
7 months ago
Just a heads up, the image version is 1.13.7.
ER
Ernest
7 months ago
Haha, NGINX__PORT, someone's been watching too much Spongebob.
BR
Brandee
7 months ago
4 replicas, nice! Gotta make sure the deployment scales well.
DO
Domingo
7 months ago
Hmm, the environment variable name seems a bit odd, but I guess it's a custom setting.
AR
Arlene
7 months ago
This looks straightforward, just need to make sure the namespace and container image are correct.
EM
Emilio
8 months ago
I know I need to use the `kubectl` command, but I’m uncertain if I should include the `--namespace` flag or just set it in the YAML file.
GE
German
8 months ago
I practiced a deployment with multiple replicas, but I’m a bit confused about how to expose the port correctly.
GA
Gayla
8 months ago
This question feels similar to the practice one about creating a deployment, but I can't recall if I need to specify the namespace in the command.
KA
Kathryn
9 months ago
I think I remember how to create a deployment, but I'm not sure about the exact syntax for setting the environment variable.
DA
Dannie
9 months ago
Hmm, this looks like a standard deployment creation task. I'll need to use the `kubectl create deployment` command and then set the appropriate flags for the namespace, name, replicas, image, and environment variable. I'm confident I can handle this, but I'll double-check the syntax just to be sure.
ER
Ernest
9 months ago
Okay, this seems pretty straightforward. I'll need to use the `kubectl create deployment` command, and then configure the deployment with the specified parameters. I'm a bit unsure about the environment variable syntax, but I'll look it up in the documentation to make sure I get it right.
VI
Victor
9 months ago
Alright, let's do this. I'm going to create the deployment using the `kubectl create deployment` command, and then use the `--namespace`, `--replicas`, `--image`, and `--env` flags to configure it as required. Shouldn't be too tricky, as long as I get the details right.
AN
Annita
9 months ago
Hmm, this looks straightforward enough. I'll need to use the `kubectl create deployment` command and specify the namespace, name, replicas, image, and environment variable. Shouldn't be too difficult, but I'll need to double-check the syntax.
SH
Sheridan
9 months ago
Okay, let's see. I'll need to create a new deployment in the kdpd00201 namespace, with the name "frontend" and 4 replicas. The container image is lfccncf/nginx:1.13.7, and I'll need to set an environment variable of NGINX__PORT=8080 and expose that port.
OZ
Ozell
3 months ago
And use the lfccncf/nginx:1.13.7 image, plus set the NGINX__PORT variable to 8080.
MA
Maryann
4 months ago
Right! Don't forget to name it "frontend" with 4 replicas.
AI
Aide
4 months ago
I think we should start by creating the deployment in the kdpd00201 namespace.