Share via


InitContainerDefinition Class

The init container definition.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Constructor

InitContainerDefinition(*, name: str, image: str | None = None, command: List[str] | None = None, environment_variables: List[_models.EnvironmentVariable] | None = None, volume_mounts: List[_models.VolumeMount] | None = None, security_context: _models.SecurityContextDefinition | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

The name for the init container. Required.

image
str

The image of the init container.

Default value: None
command

The command to execute within the init container in exec form.

Default value: None
environment_variables

The environment variables to set in the init container.

Default value: None
volume_mounts

The volume mounts available to the init container.

Default value: None
security_context

The container security properties.

Default value: None

Variables

Name Description
name
str

The name for the init container. Required.

image
str

The image of the init container.

command

The command to execute within the init container in exec form.

environment_variables

The environment variables to set in the init container.

instance_view

The instance view of the init container. Only valid in response.

volume_mounts

The volume mounts available to the init container.

security_context

The container security properties.