[英]what are the possible values for IContainerGroup.State property? using azure sdk for container groups in azure
I am using azure SDK for management and I have the following code.我正在使用 azure SDK 进行管理,我有以下代码。 I am wondering what are the possible values for
IContainerGroup.State
?我想知道
IContainerGroup.State
的可能值是什么? I am using the code below and so far i can find two values "Running"
and "Succeeded"
I am looking for other possible values which the documentation does not provide.我正在使用下面的代码,到目前为止我可以找到两个值
"Running"
和"Succeeded"
我正在寻找文档未提供的其他可能值。
containerGroup = azure.ContainerGroups.GetByResourceGroup(rgName, aciName);
console.log($"Container State Is: { containerGroup.State }");
thanks!谢谢!
There can be 5 possible values for containerGroup.State
: containerGroup.State
可以有 5 个可能的值:
Running: The container group is running and will continue to try to run until a user action or a stop caused by the restart policy occurs. Running:容器组正在运行,并将继续尝试运行,直到出现用户操作或重启策略导致的停止。
Stopped: The container group has been stopped and will not be scheduled to run without user action.已停止:容器组已停止,如果没有用户操作,将不会安排运行。
Pending: The container group is waiting to initialize (finish running init containers, mount Azure file volumes if applicable). Pending:容器组正在等待初始化(完成运行 init 容器,挂载 Azure 个文件卷(如果适用))。 The container continues to attempt to get to the Running state unless a user action (stop/delete) happens.
除非发生用户操作(停止/删除),否则容器会继续尝试进入Running state。
Succeeded: The container group has run to completion successfully.成功:容器组已成功运行完成。 Only applicable for Never and On Failure restart policies.
仅适用于Never和On Failure重启策略。
Failed: The container group failed to run to completion.失败:容器组未能运行完成。 Only applicable with a Never restart policy.
仅适用于永不重启策略。 This state indicates either an infrastructure failure (example: incorrect Azure file share credentials) or user application failure (example: application references an environment variable that does not exist).
此 state 表示基础架构故障(示例:不正确的 Azure 文件共享凭据)或用户应用程序故障(示例:应用程序引用不存在的环境变量)。
The following table shows what states are applicable to a container group based on the designated restart policy:下表显示了根据指定的重启策略适用于容器组的状态:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.