ContainerServiceNetworkProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.ContainerServiceNetworkProfile

Implements

public final class ContainerServiceNetworkProfile
implements JsonSerializable<ContainerServiceNetworkProfile>

Profile of network configuration.

Constructor Summary

Constructor Description
ContainerServiceNetworkProfile()

Creates an instance of ContainerServiceNetworkProfile class.

Method Summary

Modifier and Type Method and Description
String dnsServiceIp()

Get the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service.

static ContainerServiceNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of ContainerServiceNetworkProfile from the JsonReader.

List<IpFamily> ipFamilies()

Get the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters.

ManagedClusterLoadBalancerProfile loadBalancerProfile()

Get the loadBalancerProfile property: Profile of the cluster load balancer.

LoadBalancerSku loadBalancerSku()

Get the loadBalancerSku property: The default is 'standard'.

ManagedClusterNatGatewayProfile natGatewayProfile()

Get the natGatewayProfile property: Profile of the cluster NAT gateway.

NetworkDataplane networkDataplane()

Get the networkDataplane property: Network dataplane used in the Kubernetes cluster.

NetworkMode networkMode()

Get the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.

NetworkPlugin networkPlugin()

Get the networkPlugin property: Network plugin used for building the Kubernetes network.

NetworkPluginMode networkPluginMode()

Get the networkPluginMode property: The mode the network plugin should use.

NetworkPolicy networkPolicy()

Get the networkPolicy property: Network policy used for building the Kubernetes network.

OutboundType outboundType()

Get the outboundType property: This can only be set at cluster creation time and cannot be changed later.

String podCidr()

Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.

List<String> podCidrs()

Get the podCidrs property: One IPv4 CIDR is expected for single-stack networking.

String serviceCidr()

Get the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs.

List<String> serviceCidrs()

Get the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerServiceNetworkProfile withDnsServiceIp(String dnsServiceIp)

Set the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service.

ContainerServiceNetworkProfile withIpFamilies(List<IpFamily> ipFamilies)

Set the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters.

ContainerServiceNetworkProfile withLoadBalancerProfile(ManagedClusterLoadBalancerProfile loadBalancerProfile)

Set the loadBalancerProfile property: Profile of the cluster load balancer.

ContainerServiceNetworkProfile withLoadBalancerSku(LoadBalancerSku loadBalancerSku)

Set the loadBalancerSku property: The default is 'standard'.

ContainerServiceNetworkProfile withNatGatewayProfile(ManagedClusterNatGatewayProfile natGatewayProfile)

Set the natGatewayProfile property: Profile of the cluster NAT gateway.

ContainerServiceNetworkProfile withNetworkDataplane(NetworkDataplane networkDataplane)

Set the networkDataplane property: Network dataplane used in the Kubernetes cluster.

ContainerServiceNetworkProfile withNetworkMode(NetworkMode networkMode)

Set the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.

ContainerServiceNetworkProfile withNetworkPlugin(NetworkPlugin networkPlugin)

Set the networkPlugin property: Network plugin used for building the Kubernetes network.

ContainerServiceNetworkProfile withNetworkPluginMode(NetworkPluginMode networkPluginMode)

Set the networkPluginMode property: The mode the network plugin should use.

ContainerServiceNetworkProfile withNetworkPolicy(NetworkPolicy networkPolicy)

Set the networkPolicy property: Network policy used for building the Kubernetes network.

ContainerServiceNetworkProfile withOutboundType(OutboundType outboundType)

Set the outboundType property: This can only be set at cluster creation time and cannot be changed later.

ContainerServiceNetworkProfile withPodCidr(String podCidr)

Set the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.

ContainerServiceNetworkProfile withPodCidrs(List<String> podCidrs)

Set the podCidrs property: One IPv4 CIDR is expected for single-stack networking.

ContainerServiceNetworkProfile withServiceCidr(String serviceCidr)

Set the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs.

ContainerServiceNetworkProfile withServiceCidrs(List<String> serviceCidrs)

Set the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking.

Methods inherited from java.lang.Object

Constructor Details

ContainerServiceNetworkProfile

public ContainerServiceNetworkProfile()

Creates an instance of ContainerServiceNetworkProfile class.

Method Details

dnsServiceIp

public String dnsServiceIp()

Get the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.

Returns:

the dnsServiceIp value.

fromJson

public static ContainerServiceNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of ContainerServiceNetworkProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerServiceNetworkProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the ContainerServiceNetworkProfile.

ipFamilies

public List ipFamilies()

Get the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is IPv4. For dual-stack, the expected values are IPv4 and IPv6.

Returns:

the ipFamilies value.

loadBalancerProfile

public ManagedClusterLoadBalancerProfile loadBalancerProfile()

Get the loadBalancerProfile property: Profile of the cluster load balancer.

Returns:

the loadBalancerProfile value.

loadBalancerSku

public LoadBalancerSku loadBalancerSku()

Get the loadBalancerSku property: The default is 'standard'. See [Azure Load Balancer SKUs](https://docs.microsoft.com/azure/load-balancer/skus) for more information about the differences between load balancer SKUs.

Returns:

the loadBalancerSku value.

natGatewayProfile

public ManagedClusterNatGatewayProfile natGatewayProfile()

Get the natGatewayProfile property: Profile of the cluster NAT gateway.

Returns:

the natGatewayProfile value.

networkDataplane

public NetworkDataplane networkDataplane()

Get the networkDataplane property: Network dataplane used in the Kubernetes cluster.

Returns:

the networkDataplane value.

networkMode

public NetworkMode networkMode()

Get the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.

Returns:

the networkMode value.

networkPlugin

public NetworkPlugin networkPlugin()

Get the networkPlugin property: Network plugin used for building the Kubernetes network.

Returns:

the networkPlugin value.

networkPluginMode

public NetworkPluginMode networkPluginMode()

Get the networkPluginMode property: The mode the network plugin should use.

Returns:

the networkPluginMode value.

networkPolicy

public NetworkPolicy networkPolicy()

Get the networkPolicy property: Network policy used for building the Kubernetes network.

Returns:

the networkPolicy value.

outboundType

public OutboundType outboundType()

Get the outboundType property: This can only be set at cluster creation time and cannot be changed later. For more information see [egress outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype).

Returns:

the outboundType value.

podCidr

public String podCidr()

Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.

Returns:

the podCidr value.

podCidrs

public List podCidrs()

Get the podCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking.

Returns:

the podCidrs value.

serviceCidr

public String serviceCidr()

Get the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.

Returns:

the serviceCidr value.

serviceCidrs

public List serviceCidrs()

Get the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. They must not overlap with any Subnet IP ranges.

Returns:

the serviceCidrs value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDnsServiceIp

public ContainerServiceNetworkProfile withDnsServiceIp(String dnsServiceIp)

Set the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service. It must be within the Kubernetes service address range specified in serviceCidr.

Parameters:

dnsServiceIp - the dnsServiceIp value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withIpFamilies

public ContainerServiceNetworkProfile withIpFamilies(List ipFamilies)

Set the ipFamilies property: IP families are used to determine single-stack or dual-stack clusters. For single-stack, the expected value is IPv4. For dual-stack, the expected values are IPv4 and IPv6.

Parameters:

ipFamilies - the ipFamilies value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withLoadBalancerProfile

public ContainerServiceNetworkProfile withLoadBalancerProfile(ManagedClusterLoadBalancerProfile loadBalancerProfile)

Set the loadBalancerProfile property: Profile of the cluster load balancer.

Parameters:

loadBalancerProfile - the loadBalancerProfile value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withLoadBalancerSku

public ContainerServiceNetworkProfile withLoadBalancerSku(LoadBalancerSku loadBalancerSku)

Set the loadBalancerSku property: The default is 'standard'. See [Azure Load Balancer SKUs](https://docs.microsoft.com/azure/load-balancer/skus) for more information about the differences between load balancer SKUs.

Parameters:

loadBalancerSku - the loadBalancerSku value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withNatGatewayProfile

public ContainerServiceNetworkProfile withNatGatewayProfile(ManagedClusterNatGatewayProfile natGatewayProfile)

Set the natGatewayProfile property: Profile of the cluster NAT gateway.

Parameters:

natGatewayProfile - the natGatewayProfile value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withNetworkDataplane

public ContainerServiceNetworkProfile withNetworkDataplane(NetworkDataplane networkDataplane)

Set the networkDataplane property: Network dataplane used in the Kubernetes cluster.

Parameters:

networkDataplane - the networkDataplane value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withNetworkMode

public ContainerServiceNetworkProfile withNetworkMode(NetworkMode networkMode)

Set the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.

Parameters:

networkMode - the networkMode value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withNetworkPlugin

public ContainerServiceNetworkProfile withNetworkPlugin(NetworkPlugin networkPlugin)

Set the networkPlugin property: Network plugin used for building the Kubernetes network.

Parameters:

networkPlugin - the networkPlugin value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withNetworkPluginMode

public ContainerServiceNetworkProfile withNetworkPluginMode(NetworkPluginMode networkPluginMode)

Set the networkPluginMode property: The mode the network plugin should use.

Parameters:

networkPluginMode - the networkPluginMode value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withNetworkPolicy

public ContainerServiceNetworkProfile withNetworkPolicy(NetworkPolicy networkPolicy)

Set the networkPolicy property: Network policy used for building the Kubernetes network.

Parameters:

networkPolicy - the networkPolicy value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withOutboundType

public ContainerServiceNetworkProfile withOutboundType(OutboundType outboundType)

Set the outboundType property: This can only be set at cluster creation time and cannot be changed later. For more information see [egress outbound type](https://docs.microsoft.com/azure/aks/egress-outboundtype).

Parameters:

outboundType - the outboundType value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withPodCidr

public ContainerServiceNetworkProfile withPodCidr(String podCidr)

Set the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.

Parameters:

podCidr - the podCidr value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withPodCidrs

public ContainerServiceNetworkProfile withPodCidrs(List podCidrs)

Set the podCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking.

Parameters:

podCidrs - the podCidrs value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withServiceCidr

public ContainerServiceNetworkProfile withServiceCidr(String serviceCidr)

Set the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs. It must not overlap with any Subnet IP ranges.

Parameters:

serviceCidr - the serviceCidr value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

withServiceCidrs

public ContainerServiceNetworkProfile withServiceCidrs(List serviceCidrs)

Set the serviceCidrs property: One IPv4 CIDR is expected for single-stack networking. Two CIDRs, one for each IP family (IPv4/IPv6), is expected for dual-stack networking. They must not overlap with any Subnet IP ranges.

Parameters:

serviceCidrs - the serviceCidrs value to set.

Returns:

the ContainerServiceNetworkProfile object itself.

Applies to