본문 바로가기
반응형

전체 글264

04. [실습] Kubernetes Operator 적용 1. Operator 작성 디렉토리 구조 • operator.yaml : Operator 메타데이터와 전체 라이프 사이클을 모두 정의하는 기본 YAML 파일 • params.yaml : Operator의 매개변수를 정의 • templates 디렉토리 : operator.yaml에 정의된 워크플로를 기반으로 설치 후 클러스터에 적용될 모든 템플릿화된 Kubernetes Object가 포함 2. KUDO 설치 (1) KUDO 플러그인 바이너리 다운로드 및 설치 $ wget https://github.com/kudobuilder/kudo/releases/download/v0.19.0/kubectl-kudo_0.19.0_linux_x86_64 $ chmod +x kubectl-kudo_0.19.0_linux_x.. 2023. 2. 9.
03. Kubernetes Operator 소개 1. Kubernetes Controller 소개 • Kubernetes Controller는 Object의 선언적인 Spec 기준 원하는 상태(Desire State)를 읽고 Object의 현재 상태(Current State)와 비교해서 처리한 후에 etcd에서 상태(Status)를 갱신하는 방식으로 동작하는 컴포넌트 • CRD를 사용하여 만든 Custom Resource를 이용하여 사용자가 원하는 상태를 선언하면(etcd에 갱신되면), Custom Controller가 그 상태를 맞추기 위해 동작 2. Kubernetes Operator 소개 • Kubernetes Operator는 Custom Resource Definition(CRD)를 기반으로 애플리케이션 및 컴포넌트를 관리하는 Kubernet.. 2023. 2. 8.
02. Custom Resource Definition(CRD) 소개 https://kubernetes.io/docs/tasks/extend-kubernetes/custom-resources/custom-resource-definitions/ Extend the Kubernetes API with CustomResourceDefinitions This page shows how to install a custom resource into the Kubernetes API by creating a CustomResourceDefinition. Before you begin You need to have a Kubernetes cluster, and the kubectl command-line tool must be configured to communicate with yo.. 2023. 2. 8.
01. Kubernetes Custom 관리 방법 소개 쿠버네티스에서는 built-in으로 제공되는 오브젝트나 리소스 제공 방식 외에도 커스텀으로 관리하는 방법이 있다. 이는 extension이라는 형태로 구현할 수 있는데 K8s 기능을 확장하고 K8s와 긴밀하게 통합되는 소프트웨어 컴포넌트로 구현된다. 즉, extension은 K8s가 새로운 type의 리소스와 새로운 종류의 시스템을 지원할 수 있게 해준다. extension 패턴 Kubernetes는 클라이언트 프로그램을 작성하여 자동화 되도록 설계되었다. extension 패턴은 3가지가 있다. • Controller 모델은 Kubernetes의 클라이언트로, 일반적으로 Object의 .spec을 읽고, 클러스터에서 적용한 다음 Object의 .status를 업데이트해 etcd에 갱신 • WebHook.. 2023. 2. 7.
반응형