你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

ContainerProperties interface

容器实例属性。

属性

command

要以 exec 形式在容器实例中执行的命令。

configMap

配置映射。

environmentVariables

在容器实例中设置的环境变量。

image

用于创建容器实例的映像的名称。

instanceView

容器实例的实例视图。 仅在响应中有效。

livenessProbe

生存度探测。

ports

容器实例上公开的端口。

readinessProbe

就绪情况探测。

resources

容器实例的资源要求。

securityContext

容器安全属性。

volumeMounts

卷装载可用于容器实例。

属性详细信息

command

要以 exec 形式在容器实例中执行的命令。

command?: string[]

属性值

string[]

configMap

配置映射。

configMap?: ConfigMap

属性值

environmentVariables

在容器实例中设置的环境变量。

environmentVariables?: EnvironmentVariable[]

属性值

image

用于创建容器实例的映像的名称。

image?: string

属性值

string

instanceView

容器实例的实例视图。 仅在响应中有效。

instanceView?: ContainerPropertiesInstanceView

属性值

livenessProbe

生存度探测。

livenessProbe?: ContainerProbe

属性值

ports

容器实例上公开的端口。

ports?: ContainerPort[]

属性值

readinessProbe

就绪情况探测。

readinessProbe?: ContainerProbe

属性值

resources

容器实例的资源要求。

resources?: ResourceRequirements

属性值

securityContext

容器安全属性。

securityContext?: SecurityContextDefinition

属性值

volumeMounts

卷装载可用于容器实例。

volumeMounts?: VolumeMount[]

属性值