Deploy a pod named nginx-pod using the nginx:alpine image.
Once done, click on the Next Question button in the top right corner of this panel.
You may navigate back and forth freely between all questions.
Once done with all questions, click on End Exam.
Your work will be validated at the end and score shown. Good Luck!
- Name: nginx-pod
- Image: nginx:alpine
Deploy a
messaging
pod using theredis:alpine
image with the labels set totier=msg
.
- Pod Name: messaging
- Image: redis:alpine
- Labels: tier=msg
Create a namespace named
apx-x9984574
.
Get the list of nodes in JSON format and store it in a file at
/opt/outputs/nodes-z3444kd9.json
.
Create a service
messaging-service
to expose themessaging
application within the cluster on port6379
.Use imperative commands.
- Service: messaging-service
- Port: 6379
- Type: ClusterIp
- Use the right labels
Create a deployment named
hr-web-app
using the imagekodekloud/webapp-color
with2
replicas.
- Name: hr-web-app
- Image: kodekloud/webapp-color
- Replicas: 2
Create a static pod named
static-busybox
on the controlplane node that uses thebusybox
image and the commandsleep 1000
.
- Name: static-busybox
- Image: busybox
Create a POD in the
finance
namespace namedtemp-bus
with the imageredis:alpine
.
- Name: temp-bus
- Image Name: redis:alpine
A new application
orange
is deployed. There is something wrong with it. Identify and fix the issue.
Expose the
hr-web-app
as servicehr-web-app-service
application on port30082
on the nodes on the cluster.The web application listens on port
8080
.
- Name: hr-web-app-service
- Type: NodePort
- Endpoints: 2
- Port: 8080
- NodePort: 30082
Use JSON PATH query to retrieve the
osImage
s of all the nodes and store it in a file/opt/outputs/nodes_os_x43kj56.txt
.The
osImages
are under thenodeInfo
section understatus
of each node.
Create a
Persistent Volume
with the given specification.
- Volume Name: pv-analytics
- Storage: 100Mi
- Access modes: ReadWriteMany
- Host Path: /pv/data-analytics