해당 내용은 Udemy의 Certified Kubernetes Administrator (CKA) with Practice Tests 강의를 공부한 내용입니다. 내용을 그대로 번역하기보다는, 제가 이해하기 쉬운 대로 수정한 부분들이 있습니다.
⚠️ 영어 독해가 많이 부족합니다. 틀린 내용이 있으면 알려주시면 감사하겠습니다.
Q1. How many Services exist on the system?
kubectl get services
또는 kubectl get svc
로 확인합니다.

답: 1
Q2. That is a default service created by Kubernetes at launch. (Information only)
Q3. What is the type of the default kubernetes
service?
kubectl get services
또는 kubectl get svc
로 확인합니다.

답: ClusterIP
Q4. What is the targetPort
configured on the kubernetes
service?
kubectl describe svc kubernetes
커맨드로 확인할 수 있습니다.

답: 6443
Q5. How many labels are configured on the kubernetes
service?
kubectl describe svc kubernetes
커맨드로 확인할 수 있습니다.

답: 2
Q6. How many Endpoints are attached on the kubernetes
service?
kubectl describe svc kubernetes
커맨드로 확인할 수 있습니다.

답: 1
Q7. How many Deployments exist on the system now?

답: 1
Q8. What is the image used to create the pods in the deployment?
kubectl describe deployments.apps simple-webapp-deployment
커맨드를 통해 확인할 수 있습니다.

답: kodekloud/simple-webapp:red
Q9. Are you able to accesss the Web App UI?
터미널 옆에 ‘simple-webapp-ui’ 버튼이 있습니다,


답: NO
Q10. Create a new service to access the web application using the service-definition-1.yaml
file.
Name:
webapp- service
Type:
NodePort
targetPort:
8080
port:
8080
nodePort:
30080
selector:
name:
simple-webapp
이미 생성된 yaml파일이 있습니다. 파일을 수정합니다.


kubectl create -f service-definition-1.yaml
커맨드로 service를 만들 수 있습니다.

Q11. Access the web application using the tab simple-webapp-ui
above the terminal window.

'MLOps > Doker & Kubernetes' 카테고리의 다른 글
Udemy CKA 강의 정리 41: Practice Test - Namespaces (0) | 2023.01.05 |
---|---|
Udemy CKA 강의 정리 40: Namespaces (0) | 2023.01.05 |
Udemy CKA 강의 정리 38: Practice Test - Services (0) | 2023.01.05 |
Udemy CKA 강의 정리 37: Services - Loadbalancer (0) | 2023.01.05 |
Udemy CKA 강의 정리 36: Services Cluster IP (0) | 2023.01.05 |
댓글