
1.8 - Pods, Services and Deployments
Authored by Jhonny Pong
Computers
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
6 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which `kubectl` command is used to run a pod named `apache` using the image `httpd:latest`?
kubectl create pod apache --image=httpd:latest
k run apache --image=httpd:latest
k deploy apache --image=httpd:latest
kubectl run apache --image=nginx:latest
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which `kubectl` command is used to create a deployment named `apache` using the image `httpd:latest`?
kubectl run deploy apache --image httpd:latest
k create deployment apache --image=httpd:latest
kubectl create deploy apache --image httpd:latest
k deploy apache --image=httpd:latest
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which `kubectl` command is used to scale the `apache` deployment to 5 replicas?
k scale pod apache --replicas 5
k scale deploy apache --replicas 5
k create replicas apache --replicas 5
kubectl scale deploy nginx --replicas 5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which `kubectl` command is used to switch the current context to `kubernetes-admin@kubernetes`?
kubectl context set kubernetes-admin@kubernetes
kubectl use-context kubernetes-admin@kubernetes
kubectl set-context kubernetes-admin@kubernetes
kubectl config use-context kubernetes-admin@kubernetes
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which `kubectl` command is used to expose a pod `nginx-pod` as a service named `nginx-service`?
k run pod nginx-pod --expose --name nginx-service
k expose deployment nginx-pod --name nginx-service
k expose pod nginx-pod --name nginx-service
k create service pod nginx-pod --name nginx-service
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which `kubectl` command is used to forward the local port 80 to the port 80 of the service `nginx-service`?
k port-forward pod/nginx-service 80:80
k expose svc/nginx-service --port=80 --target-port=80
k forward svc/nginx-service 80:80
k port-forward svc/nginx-service 80:80
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Round 3 - Emergin
Quiz
•
University
10 questions
แบบทดสอบ Big Data
Quiz
•
University
10 questions
lRns1iNugLyyt4dxLrv808nuO6ndDmJ86yAkwN9blE=
Quiz
•
University
10 questions
Round 2 ( RHA Champion Contest )
Quiz
•
University
9 questions
7) 208.4 Implementing Nginx as a web server and a reverse proxy
Quiz
•
University
9 questions
USO DE SOTFWARE LIBRE
Quiz
•
University
8 questions
Zagrożenia w sieci
Quiz
•
University
10 questions
SPRING INTRODUCTION
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
12 questions
IREAD Week 4 - Review
Quiz
•
3rd Grade - University
20 questions
Endocrine System
Quiz
•
University
7 questions
Renewable and Nonrenewable Resources
Interactive video
•
4th Grade - University
30 questions
W25: PSYCH 250 - Exam 2 Practice
Quiz
•
University
5 questions
Inherited and Acquired Traits of Animals
Interactive video
•
4th Grade - University
20 questions
Implicit vs. Explicit
Quiz
•
6th Grade - University
7 questions
Comparing Fractions
Interactive video
•
1st Grade - University
38 questions
Unit 8 Review - Absolutism & Revolution
Quiz
•
10th Grade - University