본문 바로가기
MLOps/Doker & Kubernetes

Udemy CKA 강의 정리 106: Solution - Secrets (optional)

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

해당 내용은 Udemy의 Certified Kubernetes Administrator (CKA) with Practice Tests 강의를 공부한 내용입니다. 내용을 그대로 번역하기보다는, 제가 이해하기 쉬운 대로 수정한 부분들이 있습니다.

⚠️ 영어 독해가 많이 부족합니다. 틀린 내용이 있으면 알려주시면 감사하겠습니다.


Q1. How many Secrets exist on the system?

답: 1

 

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

답: 3

 

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

답: kubernetes.io/service-account-token

 

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

답: type

 

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

kubectl edit pod webapp-pad

문서 참고

(다시 풀기)

 

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

(다시 풀기)

반응형

댓글