Class NodeOptions
Describes cluster node options.
Namespace: Neon.Kube.ClusterDef
Assembly: Neon.Kube.dll
Syntax
public class NodeOptions
Properties
AllowPackageManagerIPv6
Allow the Linux package manager to use IPv6 when communicating with
package mirrors. This defaults to false
to restrict access
to IPv4.
Declaration
[JsonProperty(PropertyName = "AllowPackageManagerIPv6", Required = Required.Default)]
[YamlMember(Alias = "allowPackageManagerIPv6", ApplyNamingConventions = false)]
public bool AllowPackageManagerIPv6 { get; set; }
Property Value
Type | Description |
---|---|
bool |
PackageManagerRetries
Specifies the number of times the host package manager should retry failed index or package downloads. This defaults to 5.
Declaration
[JsonProperty(PropertyName = "PackageManagerRetries", Required = Required.Default)]
[YamlMember(Alias = "packageManagerRetries", ApplyNamingConventions = false)]
public int PackageManagerRetries { get; set; }
Property Value
Type | Description |
---|---|
int |
Methods
Validate(ClusterDefinition)
Validates the options and also ensures that all null
properties are
initialized to their default values.
Declaration
public void Validate(ClusterDefinition clusterDefinition)
Parameters
Type | Name | Description |
---|---|---|
ClusterDefinition | clusterDefinition | The cluster definition. |
Exceptions
Type | Condition |
---|---|
ClusterDefinitionException | Thrown if the definition is not valid. |