본문 바로가기

Computer Science

(127)
Kubernetes 정리 190: Solution - Persistent Volumes and Persistent Volume Claims
Kubernetes 정리 189: Practice Test - Persistent Volumes and Persistent Volume Claims Q1. We have deployed a POD. Inspect the POD and wait for it to start running. Q2. The application stores logs at location /log/app.log. View the logs. You can exec in to the container and open the file: kubectl exec webapp -- cat /log/app.log Q3. If the POD was to get deleted now, would you be able to view these logs. Q4. Configure a volume to store these logs at /var/log/webapp on the host. Use..
Kubernetes 정리 188: Using PVCs in PODs Once you create a PVC use it in a POD definition file by specifying the PVC Claim name under persistentVolumeClaim section in the volumes section like this: apiVersion: v1 kind: Pod metadata: name: mypod spec: containers: - name: myfrontend image: nginx volumeMounts: - mountPath: "/var/www/html" name: mypd volumes: - name: mypd persistentVolumeClaim: claimName: myclaim The same is true for Repli..
Kubernetes 정리 187: Persistent Volume Claims 이전 강의에서 persistent volume을 만들었습니다. 이제 노드에서 스토리지를 사용할 수 있도록 persistent volume claims을 생성하려고 합니다. persistent volume 및 persistent volume claims은 Kubernetes 네임스페이스에서 두 개의 개별 오브젝트입니다. 관리자는 persistent volume 세트를 생성하고 사용자는 스토리지를 사용하기 위해 persistent volume claims을 생성합니다. persistent volume claims이 생성되면 Kubernetes는 request와 volume에 설정된 속성을 기반으로 persistent volume을 claims에 바인딩합니다. 모든 persistent volume claims..
Kubernetes 정리 186: Persistent Volumes 이제 Kubernetes의 persistent volume에 대해 설명하겠습니다. 이전 섹션에서 볼륨을 생성할 때 파드 definition 파일 내에서 볼륨을 구성했으므로 볼륨에 대한 스토리지를 구성하는 데 필요한 모든 configuration 정보는 파드 definition 파일 내에 있습니다. 유저가 많고, 많은 파드를 배포하는 대규모 환경의 경우에는 각 파드에 대해 매번 스토리지를 구성해야 합니다. 어떤 스토리지 솔루션을 사용하든 파드를 배포하는 사용자는 자신의 환경에 있는 모든 파드 definition 파일에서 이를 구성해야 합니다. 변경 사항이 있을 때마다 사용자는 자신의 모든 파드에 변경 사항을 적용해야 합니다. 따라서 스토리지를 보다 중앙에서 관리하고 싶을 것입니다. 관리자가 대규모 스토리지..
Kubernetes 정리 167: Practice Test - Image Security Q1. What secret type must we choose for docker registry? Q2. We have an application running on our cluster. Let us explore it first. What image is the application using? Q3. We decided to use a modified version of the application from an internal private registry. Update the image of the deployment to use a new image from myprivateregistry.com:5000 Q4. Are the new PODs created with the new image..
Kubernetes 정리 167: Image Security 1. Image 이미지 이름의 기본사항부터 시작한 다음 secure 이미지 리포지토리 및 secure 리포지토리의 이미지를 사용하도록 파드를 구성하는 방법에 대해 알아봅니다. 해당 코스 과정 전반에 걸쳐 web apps, databases, Redis cache 등과 같은 다양한 종류의 애플리케이션을 호스팅하는 파드를 배포했습니다. 간단한 파드 definition 파일을 봅시다. apiVersion: v1 kind: Pod metadata: name: nginx-pod spec: containers: - name: nginx image: nginx 여기에서는 nginx 이미지를 사용하여 nginx 컨테이너를 배포했습니다. 이 이미지 이름을 자세히 살펴보겠습니다. 이름은 nginx이지만 이 이미지는 실제로..
Kubernetes 정리 166: Practice Test Service Accounts Q1. How many Service Accounts exist in the default namespace? Q2. What is the secret token used by the default service account? Q3. We just deployed the Dashboard application. Inspect the deployment. What is the image used by the deployment? Q4. Wait for the deployment to be ready. Access the custom-dashboard by clicking on the link to dashboard portal. Q5. What is the state of the dashboard? Ha..
Kubernetes 정리 165: Service Accounts Kubernetes에는 사용자 계정과 서비스 계정이라는 두 가지 유형의 계정이 있습니다. 이미 알고 계시겠지만 사용자 계정은 사람이 사용하고 서비스 계정은 기계가 사용합니다. 사용자 계정은 관리 작업을 수행하기 위해 클러스터에 액세스하는 관리자 또는 애플리케이션을 배포하기 위해 클러스터에 액세스하는 개발자 등을 위한 것입니다. 서비스 계정은 Kubernetes 클러스터와 상호 작용하기 위해 애플리케이션에서 사용하는 계정입니다. 예를 들어 Prometheus와 같은 모니터링 애플리케이션은 서비스 계정을 사용하여 성능 메트릭을 위해 Kubernetes API를 가져옵니다. Jenkins와 같은 자동화된 빌드 tool은 서비스 계정을 사용하여 Kubernetes 클러스터에 애플리케이션을 배포합니다. 예를 들어..
Kubernetes 정리 164: Solution Cluster Roles