본문 바로가기

전체 글

(150)
Kubernetes 정리 107: Demo: Encrypting Secret Data at Rest(정리요망) (정리요망)
Kubernetes 정리 106. Solution - Secrets (Optional)
Kubernetes 정리 105: Practice Test - Secrets Q1. How many Secrets exist on the system? Q2. How many secrets are defined in the dashboard-token? 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 creat..
Kubernetes 정리 101: Practice Test - Environment Variables Q1. How many PODs exist on the system? Q2. What is the environment variable name set on the container in the pod? Q3. What is the value set on the environment variable APP_COLOR on the container in the pod? Q4. View the web application UI by clicking on the Webapp Color Tab above your terminal. Q5. Update the environment variable on the POD to display a green background Q6. View the changes to t..
Kubernetes 정리 100: Configuring ConfigMaps in Applications 이전 강의에서 파드 definition 파일에서 환경 변수를 definition하는 방법에 대해 알아보았습니다. 파드 definition 파일이 많으면 query's file에 저장된 환경 데이터를 관리하기가 어려워집니다. 이럴 때는 파드 definition 파일에서 이 정보를 가져와 config map을 사용하여 중앙에서 관리할 수 있습니다. config map은 Kubernetes에서 키 값 쌍의 형태로 configuration 데이터를 전달하는 데 사용됩니다. 파드가 생성되면 config map을 파드에 삽입하여 파드의 컨테이너 내부에서 호스팅되는 애플리케이션의 환경 변수로 키 값 쌍을 사용할 수 있습니다. config map config에는 두 단계가 있습니다. 첫 번째, config map을 만..
Kubernetes 정리 99: Configure Environment Variables in Applications 이번 강의에서는 쿠버네티스에서 환경 변수를 설정하는 방법에 대해 알아보겠습니다. 지난 강의에서 실행한 docker 커맨드과 동일한 이미지를 사용하는 파드 definition 파일이 있습니다. 환경 변수를 설정하려면 ENV 속성을 사용하십시오. ENV는 배열이므로 ENV 속성 아래의 모든 항목은 배열의 항목을 나타내는 대시로 시작합니다. 각 항목에는 이름과 값 속성이 있습니다. 이름은 컨테이너와 함께 사용할 수 있는 환경 변수의 이름이고 값은 해당 값입니다. 방금 본 것은 일반 키 값 쌍 형식을 사용하여 환경 변수를 지정하는 직접적인 방법이었습니다. 그러나 config map 및 secrets을 사용하는 것과 같은 환경 변수를 설정하는 다른 방법이 있습니다. 이 경우의 차이점은 value를 지정하는 대신 ..
Kubernetes 정리 98: Solution - Commands and Arguments (optional)
Kubernetes 정리 97: Practice Test - Commands and Arguments Q1. How many PODs exist on the system? Q2. What is the command used to run the pod Q3. Create a pod with the ubuntu image to run a container to sleep for 5000 seconds. Modify the file Q4. Create a pod using the file namedubuntu-sleeper-3.yaml Q5. Update pod ubuntu-sleeper-3 to sleep for 2000 seconds. Q6. Inspect the file Dockerfile given at /root/webapp-color directory. What command is run at co..
Kubernetes 정리 96: Commands and Arguments 이번 강의에서는 쿠버네티스 파드의 명령과 arguments를 살펴보겠습니다. 이전 강의에서는 주어진 시간 동안 sleep하는 간단한 도커 이미지를 만들었습니다. ubuntu-sleeper라는 이름을 지정하고 docker 명령인 docker run ubuntu-sleeper ubuntu-sleeper 를 사용하여 실행했습니다. default로 5초 동안 대기하지만 커맨드라인 arguments를 전달하여 override할 수 있습니다. 이제 이 이미지를 사용하여 파드를 생성하겠습니다. 빈 파드 definition 템플릿으로 시작하여, 파드 이름을 입력하고 이미지 이름을 지정합니다. 이 파드가 생성되면 지정된 이미지에서 컨테이너를 생성하고 컨테이너는 종료되기 전에 5초 동안 sleep합니다. run --nam..
Kubernetes 정리 95: Commands 파드 definition 파일의 커맨드 및 arguments에 대해 설명합니다. 이것은 CKA 커리큘럼에 필수 항목으로 나와 있지는 않지만, 일반적으로 간과하기 쉬운 내용이므로 설명하는 것이 중요하다고 생각합니다. 먼저 도커에서의 커맨드와 컨테이너 개념을 refresh 합시다. 다음 강의에서 이 내용들을 파드로 바꿔서 살펴볼 것입니다. 이 강의에서는 Docker의 커맨드, arguments 및 entry point에 대해 살펴보겠습니다. 간단한 시나리오부터 시작하겠습니다. Ubuntu 이미지에서 Docker 컨테이너를 실행한다고 가정합니다. docker run ubuntu 커맨드를 실행하면 Ubuntu 이미지 인스턴스가 실행되고 즉시 종료됩니다. 실행 중인 컨테이너를 조회하면 실행 중인 컨테이너가 표시되..
Kubernetes 정리 94: Configure Applications Configuring applications comprises of understanding the following concepts: Configuring Command and Arguments on applications Configuring Environment Variables Configuring Secrets We will see these next
Kubernetes 정리 71: Practice Test - DaemonSets Q1. How many DaemonSets are created in the cluster in all namespaces? Q2. Which namespace are the DaemonSets created in? Q3. Which of the below is a DaemonSet? Q4. On how many nodes are the pods scheduled by the DaemonSet kube-proxy? Q5. What is the image used by the POD deployed by the kube-flannel-ds DaemonSet? Q6. Deploy a DaemonSet for FluentD Logging.