CRD Model Design

CRD Model Design for Koupleless ModuleController

Comparison of CRD Models

Native K8S CRDModuleController CRDRelationship and Difference
PodModulePod: The smallest deployable computing unit created and managed in K8S. Module: The smallest deployable computing unit created and managed in Serverless.
PodSpecModuleSpecPodSpec: Describes the specifications of a Pod, including containers, scheduling, volumes, etc. ModuleSpec: Describes the specifications of a Module, including module, service, and scheduling (affinity).
PodTemplateModuleTemplatePodTemplate: Defines the template for generating Pod replicas, including PodSpec. ModuleTemplate: Defines the template for generating Module replicas, including ModuleGroupSpec.
DeploymentModuleDeploymentDeployment: Defines the desired state and replica count for Pods. ModuleDeployment: Defines the desired state and replica count for Modules.
ReplicaSetModuleReplicaSetReplicaSet: Manages the running replicas of Pods. ModuleReplicaSet: Manages the running replicas of Modules.

ModuleDeployment CRD Model

image

Module CRD Model

image

ModuleTemplate CRD Model

image

ModuleReplicaSet CRD Model

image