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

ArmHybridNetworkModelFactory.KubernetesDeployment 方法

定义

初始化 KubernetesDeployment 的新实例。

public static Azure.ResourceManager.HybridNetwork.Models.KubernetesDeployment KubernetesDeployment (string name = default, string namespace = default, int? desiredNumberOfPods = default, int? readyNumberOfPods = default, int? upToDateNumberOfPods = default, int? availableNumberOfPods = default, DateTimeOffset? createdOn = default);
static member KubernetesDeployment : string * string * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<int> * Nullable<DateTimeOffset> -> Azure.ResourceManager.HybridNetwork.Models.KubernetesDeployment
Public Shared Function KubernetesDeployment (Optional name As String = Nothing, Optional namespace As String = Nothing, Optional desiredNumberOfPods As Nullable(Of Integer) = Nothing, Optional readyNumberOfPods As Nullable(Of Integer) = Nothing, Optional upToDateNumberOfPods As Nullable(Of Integer) = Nothing, Optional availableNumberOfPods As Nullable(Of Integer) = Nothing, Optional createdOn As Nullable(Of DateTimeOffset) = Nothing) As KubernetesDeployment

参数

name
String

部署的名称。

namespace
String

部署的命名空间。

desiredNumberOfPods
Nullable<Int32>

所需的 Pod 数。

readyNumberOfPods
Nullable<Int32>

就绪 Pod 数。

upToDateNumberOfPods
Nullable<Int32>

最新 Pod 数。

availableNumberOfPods
Nullable<Int32>

可用 Pod 数。

createdOn
Nullable<DateTimeOffset>

创建部署时间。

返回

用于模拟的新 KubernetesDeployment 实例。

适用于