pub struct DeploymentConfig {
pub replicas: u32,
pub port: u16,
pub cpu_request: Option<String>,
pub memory_request: Option<String>,
pub cpu_limit: Option<String>,
pub memory_limit: Option<String>,
pub env: Vec<EnvVar>,
}Expand description
Kubernetes deployment configuration for an application
Fields§
§replicas: u32Number of replicas
port: u16Container port
cpu_request: Option<String>CPU request (e.g., “100m”, “1”)
memory_request: Option<String>Memory request (e.g., “128Mi”, “1Gi”)
cpu_limit: Option<String>CPU limit (e.g., “1”, “2”)
memory_limit: Option<String>Memory limit (e.g., “512Mi”, “2Gi”)
env: Vec<EnvVar>Environment variables
Trait Implementations§
Source§impl Clone for DeploymentConfig
impl Clone for DeploymentConfig
Source§fn clone(&self) -> DeploymentConfig
fn clone(&self) -> DeploymentConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DeploymentConfig
impl Debug for DeploymentConfig
Source§impl Default for DeploymentConfig
impl Default for DeploymentConfig
Source§impl<'de> Deserialize<'de> for DeploymentConfig
impl<'de> Deserialize<'de> for DeploymentConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for DeploymentConfig
impl Serialize for DeploymentConfig
Source§impl Validate for DeploymentConfig
impl Validate for DeploymentConfig
Source§impl<'v_a> ValidateArgs<'v_a> for DeploymentConfig
impl<'v_a> ValidateArgs<'v_a> for DeploymentConfig
Auto Trait Implementations§
impl Freeze for DeploymentConfig
impl RefUnwindSafe for DeploymentConfig
impl Send for DeploymentConfig
impl Sync for DeploymentConfig
impl Unpin for DeploymentConfig
impl UnwindSafe for DeploymentConfig
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