본문 바로가기

전체 글

(150)
Kubernetes 정리 45: Practice Test - Imperative Commands Q1. In this lab, you will get hands-on practice with creating Kubernetes objects imperatively. All the questions in this lab can be done imperatively. However, for some questions, you may need to first create the YAML file using imperative methods. You can then modify the YAML according to the need and create the object using kubectl apply -f command. Q2. Deploy a pod named nginx-pod using the n..
Kubernetes 정리 44: Certification Tips - Imperative Commands with Kubectl While you would be working mostly the declarative way - using definition files, imperative commands can help in getting one time tasks done quickly, as well as generate a definition template easily. This would help save considerable amount of time during your exams. Before we begin, familiarize with the two options that can come in handy while working with the below commands: --dry-run: By defau..
Kubernetes 정리 43: Imperative vs Declarative(추가) 1. Imperative vs Declarative 지금까지 우리는 Kubernetes에서 오브젝트를 생성하고 관리하는 다양한 방법을 보았습니다. 우리는 커맨드를 사용해서 직접 오브젝트를 생성하기도 했고, configuration file을 사용하기도 했습니다. 인프라 관리에 있어서 이 방법들은 imperative(명령형) 접근 방식과 declarative(선언적) 접근 방식으로 분류됩니다. 비유를 들어 이해해보겠습니다. Street D에 있는 친구집에 놀러가고 싶습니다. 1) Imperative 과거에는 택시를 타면 목적지에 도달하는 방법에 대해 step-by-step으로 기사님께 말씀드려야 했습니다. Street B로 우회전 하시고, 좌회전해서 Street C로 가주세요. 그다음 다시 좌회전 하고 우..
Kubernetes 정리 42: Solution - Namespaces (Optional)
Kubernetes 정리 41: Practice Test - Namespaces Q1.How many Namespaces exist on the system? Q2. How many pods exist in the research namespace? Q3. Create a POD in the finance namespace. Q4. Which namespace has the blue pod in it? Q5. Access the Blue web application using the link above your terminal!! Q6. What DNS name should the Blue application use to access the database db-service in its own namespace - marketing? Q7. What DNS name should ..
Kubernetes 정리 40: Namespaces 1. Namespace 비유로 시작해보겠습니다. Mark라는 두 소년이 있습니다. 그들은 각자 Smith와 Williams라는 가문에서 왔기 때문에 우리는 두 소년을 구분하기 위해 Smith와 Williams라는 성으로 부릅니다. 그러나 각자의 집 안에서 가족들은 단순히 이름으로 소년에게 말을 걸 것입니다. 예를들어 Mark의 아버지는 Mark를 단순히 Mark라고 부릅니다. 그러나 아버지가 원하신다면 다른 집에 있는 Mark에게 말하기 위해 성을 붙인 이름을 사용할 수도 있습니다. 각 집에는 고유한 규칙이 있으며, 소비할 수 있는 자체 리소스 세트도 있습니다. 이제 Kubernetes로 돌아가보겠습니다. 비유에서 말한 각자의 집은 Kubernetes에서 Namespace에 해당합니다. 지금까지의 과정에..
Kubernetes 정리 39: Solution - Services(Optional)
Kubernetes 정리 38: Practice Test - Services Q1. How many Services exist on the system? Q2. That is a default service created by Kubernetes at launch. Q3. What is the type of the default 'kubernetes' service? Q4. What is the 'targetPort' configured on the kubernetes service? Q5. How many labels are configured on the 'kubernetes' service? Q6. How many Endpoints are attached on the kubernetes service? Q7. How many Deployments exist on the sy..
Kubernetes 정리 37: Services-Loadbalancer 1. Load Balancer 우리는 앞에서 Nodeport에 대해서 알아보았다. NodePorr서비스는 워커 노드 포트에서 외부 애플리케이션을 사용할 수 있도록 해준다. 이제 프론트엔드 애플리케이션으로 초점을 돌리겠습니다. 투표앱과 결과앱이 있습니다. 이제 우리는 이런 파드가 클러스터의 워크 노드에서 호스팅된다는 것을 알고 있습니다. 클러스터에 4개의 워커노드가 있다고 가정해보겠습니다. 그리고 Nodeport 타입의 서비스를 생성하여 외부 유저가 애플리케이션에 액세스할 수 있도록 합니다. Node port 타입 서비스는 노드로 들어오는 트래픽을 수신하고 각 노드에 트래픽을 라우팅하는데 도움을 줍니다. 그런데 애플리케이션에 액세스 할 때 유저에게 어떤 URL을 제공하시겠습니까? IP와 포트를 통해 두 애..
Kubernetes 정리 36: Services Cluster IP 1. ClusterIP 풀스택 웹 애플리케이션에는 일반적으로 다양한 종류의 파드가 있다. 프론트엔드 웹 서버를 실행하는 파드 세트, 백엔드 웹서버를 실행하는 파드 세트, Redis와 같은 key-value store를 실행하는 파드 세트, MYSQL과 같은 영구 데이터베이스를 실행중인 파드 세트 등이 있을 수 있다. 웹 프론트엔드 서버는 백엔드서버와 통신해야하며, 백엔드서버는 데이터베이스, Redis서버 등과 통신해야 한다. 2. 애플리케이션 간의 연결을 설정하는 올바른 방법 모든 파드에는 할당된 IP주소가 있다. 파드는 얼마든지 죽을 수도 있고 항상 새로운 파드들도 생성된다. 따라서 파드에 할당된 IP주소는 정적 주소가 아니다. 따라서 애플리케이션 간 통신을 한다고 했을 때, 이 파드 IP에 의존할 수..
Udemy CKA 강의정리 35 : Services 1. Service Kubermetes Services는 내부의 컴포넌트끼리, 그리고 애플리케이션 외부와 통신할 수 있게 해준다. Kubermetes Services는 애플리케이션을 다른 애플리케이션이나 사용자와 연결하는데 도움이 된다. 예를 들어서, 우리 애플리케이션은 다양한 섹션을 실행하는 파드의 그룹들이 있다. 프론트엔드를 유저에게 서빙하는 그룹, 백엔드 프로세스를 실행하는 그룹, 외부 데이터 소스에 연결하는 그룹들이 있을 것이다. 이러한 파드 그룹 간 연결을 가능하게 하는 것이 Service이다. Service를 통해 프론트엔드 애플리케이션을 엔드 유저가 사용할 수 있게 하고, 백엔드와 프론트엔드 POD 간 통신을 돕고, 외부 데이터 소스 연결 설정에 도움을 준다. 즉, 서비스는 애플리케이션의 마..
Udemy CKA 강의정리 33 : Practice Test - Deployments 1. How many PODs exist on the system? 2. How many ReplicaSets exist on the system? 3. How many Deployments exist on the system? 4. How many Deployments exist on the system now? 5. How many ReplicaSets exist on the system now? 6. How many PODs exist on the system now? 7. Out of all the existing PODs, how many are ready? 8. What is the image used to create the pods in the new deployment? 9. Why do..