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.

Inheritance
InitContainerDefinition

Constructor

InitContainerDefinition(*, name: str, image: Optional[str] = None, command: Optional[List[str]] = None, environment_variables: Optional[List[azure.mgmt.containerinstance.models._models_py3.EnvironmentVariable]] = None, volume_mounts: Optional[List[azure.mgmt.containerinstance.models._models_py3.VolumeMount]] = None, **kwargs)

Variables

name
str

Required. The name for the init container.

image
str

The image of the init container.

command
list[str]

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

environment_variables
list[EnvironmentVariable]

The environment variables to set in the init container.

instance_view
InitContainerPropertiesDefinitionInstanceView

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

volume_mounts
list[VolumeMount]

The volume mounts available to the init container.