# US 2022/0027217 A1 · Extending the kubernetes api in-process

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2022/0027217 A1
- Document ID: US20220027217A1
- Status: Published application
- Kind: A1
- Application number: 16/938,508
- Filed: 2020-07-24
- Published: 2022-01-27
- Earliest claimed: 2020-07-24
- Assignees: Red Hat, Inc.
- Applicants: Red Hat, Inc.
- Inventors: Markus Thoemmes; Francesco Guardiani
- Web page: https://patentgrep.com/patent/US20220027217A1

## CPC

- G06F 9/46: Multiprogramming arrangements
- G06F 9/542: {Event management; Broadcasting; Multicasting; Notifications}
- G06F 9/5011: {the resources being hardware resources other than CPUs, Servers and Terminals}
- G06F 9/547: {Remote procedure calls [RPC]; Web services}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Systems and methods for extending a container orchestration engine API in-process are disclosed. A processing device may compile each of one or more custom resource definition (CRD) controllers that are created in a cluster at run-time into a respective isolation module to generate one or more isolation modules, wherein the one or more isolation modules are all hosted in a service. The processing device may monitor for application program interface (API) events serviced by each of the one or more CRD controllers and in response to detecting an API event serviced by a CRD controller of the one or more CRD controllers, executing a respective isolation module of the CRD controller.

## Claims

### Claim 1

A method comprising:
compiling, by a processing device, each of one or more custom resource definition (CRD) controllers that are created in a cluster at run-time into a respective isolation module to generate one or more isolation modules, wherein the one or more isolation modules are all hosted in a service;
monitoring for application program interface (API) events serviced by each of the one or more CRD controllers; and
in response to detecting an API event serviced by a CRD controller of the one or more CRD controllers, executing a respective isolation module of the CRD controller.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
updating an informer with controller metadata of each of the one or more CRD controllers, wherein the informer performs the monitoring for API events serviced by each of the one or more CRD controllers based on the controller metadata of each of the one or more CRD controllers.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
in response to detecting an API event serviced by a CRD controller of the one or more CRD controllers, transmitting an indication of the CRD controller to an isolation module interface, wherein the isolation module interface executes the respective isolation module of the CRD controller using a set of APIs that facilitate input/output operations between each of the one or more isolation modules and the service.

### Claim 4 (depends on 1)

The method of claim 1, wherein each of the one or more isolation modules are isolated from the service.

### Claim 5 (depends on 1)

The method of claim 1, wherein the service comprises a controller-manager service executing on a control plane of a container orchestration engine.

### Claim 6 (depends on 1)

The method of claim 1, wherein the service comprises a service that is separate from a controller-manager service executing on a control plane of a container orchestration engine.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
monitoring resource consumption of a pod on which the one or more isolation modules are hosted using a vertical autoscaler; and
in response to determining that additional resources are needed, allocating additional resources to the pod.

### Claim 8

A system comprising:
a memory; and
a processing device, operatively coupled to the memory, the processing device to:
in response to creation of a CRD controller, compile the CRD controller into a respective isolation module, the respective isolation module hosted on a service along with one or more other isolation modules;
update an informer of the service with controller metadata of the CRD controller, the informer to monitor for application program interface (API) events serviced by the CRD controller based on the controller metadata; and
in response to detecting an API event serviced by the CRD controller, executing, by an isolation module interface, the respective isolation module of the CRD controller to transition the CRD controller from an inactive state to an active state.

### Claim 9 (depends on 8)

The system of claim 8, wherein the controller metadata of the CRD controller indicates API events serviced by the CRD controller.

### Claim 10 (depends on 9)

The system of claim 9, wherein the processing device is further to:
in response to detecting an API event serviced by the CRD controller, transmit an indication of the CRD controller to the isolation module interface, wherein the isolation module interface executes the respective isolation module of the CRD controller using a set of APIs that facilitate input/output operations between the isolation module and the service.

### Claim 11 (depends on 8)

The system of claim 8, wherein the isolation module isolates the CRD controller from the service.

### Claim 12 (depends on 8)

The system of claim 8, wherein the service comprises a controller-manager service executing on a control plane of a container orchestration engine.

### Claim 13 (depends on 8)

The system of claim 8, wherein the isolation module comprises a web assembly module (WASM).

### Claim 14 (depends on 8)

The system of claim 8, wherein the processing device is further to:
monitor resource consumption of a pod on which the isolation modules are hosted using a vertical autoscaler; and
in response to determining that additional resources are needed, allocate additional resources to the pod.

### Claim 15

A non-transitory computer readable medium, having instructions stored thereon which, when executed by a processing device, cause the processing device to:
in response to creation of a CRD controller, compile, by the processing device, the CRD controller into a respective isolation module, the respective isolation module hosted on a service along with one or more other isolation modules;
update an informer of the service with controller metadata of the CRD controller, the informer to monitor for application program interface (API) events serviced by the CRD controller based on the controller metadata; and
in response to detecting an API event serviced by the CRD controller, executing, by an isolation module interface, the respective isolation module of the CRD controller to transition the CRD controller from an inactive state to an active state.

### Claim 16 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the controller metadata of the CRD controller indicates API events serviced by the CRD controller.

### Claim 17 (depends on 16)

The non-transitory computer readable medium of claim 16, wherein the processing device is further to:
in response to detecting an API event serviced by the CRD controller, transmit an indication of the CRD controller to the isolation module interface, wherein the isolation module interface executes the respective isolation module of the CRD controller using a set of APIs that facilitate input/output operations between the isolation module and the service.

### Claim 18 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the isolation module isolates the CRD controller from the service.

### Claim 19 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the service comprises a controller-manager service executing on a control plane of a container orchestration engine.

### Claim 20 (depends on 15)

The non-transitory computer readable medium of claim 15, wherein the isolation module comprises a web assembly module (WASM).
