본문 바로가기
MLOps/Doker & Kubernetes

Udemy CKA 강의 정리 105: Practice Test - Secrets

by 공부하는 무니 2023. 1. 13.
반응형

Q1. How many Secrets exist on the system?

 

Q2. How many secrets are defined in the dashboard-token secret?

 

Q3. What is the type of the dashboard-token secret?

 

Q4. Which of the following is not a secret data defined in dashboard-token secret?

 

Q5. We are going to deploy an application with the below architecture. We have already deployed the required pods and services. Check out the pods and services created. Check out the web application using the Webapp MySQL link above your terminal, next to the Quiz Portal Link.

 

Q6. The reason the application is failed is because we have not created the secrets yet. Create a new secret named db-secret with the data given below.

  •  
  • Secret Name: db-secret

  • Secret 1: DB_Host=sql01

  • Secret 2: DB_User=root

  • Secret 3: DB_Password=password123
  •  

Q7. Configure webapp-pod to load environment variables from the newly created secret.

  • Pod name: webapp-pod

  • Image name: kodekloud/simple-webapp-mysql

  • Env From: Secret=db-secret

Q8. View the web application to verify it can successfully connect to the database

 

반응형

댓글