pub struct DeploymentGenerator { /* private fields */ }Expand description
Generates Kubernetes deployment manifests for cuda-wasm workloads
Implementations§
Source§impl DeploymentGenerator
impl DeploymentGenerator
Sourcepub fn new(config: DeploymentConfig) -> Self
pub fn new(config: DeploymentConfig) -> Self
Create a new DeploymentGenerator from deployment configuration
Sourcepub fn generate_all(&self) -> String
pub fn generate_all(&self) -> String
Generate a complete set of Kubernetes manifests as a single multi-document YAML string
The output includes (separated by ---):
- Namespace
- ConfigMap for runtime settings
- PersistentVolumeClaim for kernel cache
- Deployment with GPU resource requests
- Service
- HorizontalPodAutoscaler (if enabled)
Sourcepub fn generate_namespace(&self) -> String
pub fn generate_namespace(&self) -> String
Generate the Namespace manifest
Sourcepub fn generate_configmap(&self) -> String
pub fn generate_configmap(&self) -> String
Generate the ConfigMap for cuda-wasm runtime settings
Sourcepub fn generate_pvc(&self) -> String
pub fn generate_pvc(&self) -> String
Generate the PersistentVolumeClaim for kernel cache storage (Nutanix CSI)
Sourcepub fn generate_deployment(&self) -> String
pub fn generate_deployment(&self) -> String
Generate the Deployment manifest with GPU resource requests and node affinity
Sourcepub fn generate_service(&self) -> String
pub fn generate_service(&self) -> String
Generate the Service manifest
Sourcepub fn generate_hpa(&self) -> String
pub fn generate_hpa(&self) -> String
Generate the HorizontalPodAutoscaler manifest
Auto Trait Implementations§
impl Freeze for DeploymentGenerator
impl RefUnwindSafe for DeploymentGenerator
impl Send for DeploymentGenerator
impl Sync for DeploymentGenerator
impl Unpin for DeploymentGenerator
impl UnsafeUnpin for DeploymentGenerator
impl UnwindSafe for DeploymentGenerator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more