쿠버네티스 오퍼레이터를 구현해 자바로 된 응용프로그램을 관리하는 사용자 정의 자원을 사용해
쿠버네티스를 확장하기
해결
kubernetes-client
확장과 쿼커스를 사용해 자바로 된 쿠버네티스 오퍼레이터를 구현
하고 네이티브 실행으로 컴파일합니다.
오퍼레이터의 사용사례 중 하나는 생성시간에 몇몇 값이 설정되는 템플릿(사용자 정의 자원
custom
resource
)을 생성하는 것입니다. 파일 템플릿과 오퍼레이터의 가장 큰 차이는 공통 내용(템
플릿의 경우)이 정적
static
인 반면 오퍼레이터에서는 프로그램으로 지정할 수 있다는 것입니다.
이것은 공통 부분을 동적으로 정의할 수 있는 자유를 부여합니다. 이것은 사용자 정의 자원으
로 알려져 있으며 잘 알려진 쿠버네티스 자원을 사용하는 대신에 원하는 필드를 가진 사용자
정의 쿠버네티스 자원을 구현할 수 있다는 것을 의미합니다.
다른 사용사례는 클러스터 내에서 어떤 일이 발생했을 때 반응/작용할 수 있다는 것입니다. 클
러스터에 배포된 몇 개의 인 메모리
in
-
memory
데이터 그리드를 가지고 있으며 인스턴스 중 하나
가 죽었다고 가정해봅시다.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month, and much more.
O’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
I wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
I’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
I'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.