Class GoogleHostingOptions
Specifies the Google Cloud Platform hosting settings.
Namespace: Neon.Kube.ClusterDef
Assembly: Neon.Kube.dll
Syntax
public class GoogleHostingOptions
Constructors
GoogleHostingOptions()
Constructor.
Declaration
public GoogleHostingOptions()
Properties
NodeSubnet
specifies the subnet within VnetSubnet where the cluster nodes will be provisioned. This defaults to 10.100.0.0/24.
Declaration
[JsonProperty(PropertyName = "NodeSubnet", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "nodeSubnet", ApplyNamingConventions = false)]
public string NodeSubnet { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
VnetSubnet
Specifies the subnet for the Azure VNET. This defaults to 10.100.0.0/24
Declaration
[JsonProperty(PropertyName = "VnetSubnet", Required = Required.Default, DefaultValueHandling = DefaultValueHandling.IgnoreAndPopulate)]
[YamlMember(Alias = "vnetSubnet", ApplyNamingConventions = false)]
public string VnetSubnet { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
ClearSecrets()
Clears all hosting related secrets.
Declaration
public void ClearSecrets()
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. |