[CKA] 5주차 Day 3

강아람·2023년 3월 15일
0

CKA

목록 보기
20/22
post-thumbnail

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 the redis:alpine image with the labels set to tier=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 the messaging application within the cluster on port 6379.

Use imperative commands.

  • Service: messaging-service
  • Port: 6379
  • Type: ClusterIp
  • Use the right labels



Create a deployment named hr-web-app using the image kodekloud/webapp-color with 2 replicas.

  • Name: hr-web-app
  • Image: kodekloud/webapp-color
  • Replicas: 2



Create a static pod named static-busybox on the controlplane node that uses the busybox image and the command sleep 1000.

  • Name: static-busybox
  • Image: busybox



Create a POD in the finance namespace named temp-bus with the image redis: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 service hr-web-app-service application on port 30082 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 osImages of all the nodes and store it in a file /opt/outputs/nodes_os_x43kj56.txt.

The osImages are under the nodeInfo section under status 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

0개의 댓글