Class ContainerServiceNetworkProfile
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service.Get the dockerBridgeCidr property: A CIDR notation IP range assigned to the Docker bridge network.Get the ipFamilies property: The IP families used to specify IP versions available to the cluster.Get the loadBalancerProfile property: Profile of the cluster load balancer.Get the loadBalancerSku property: The load balancer sku for the managed cluster.Get the natGatewayProfile property: Profile of the cluster NAT gateway.Get the networkMode property: The network mode Azure CNI is configured with.Get the networkPlugin property: Network plugin used for building the Kubernetes network.Get the networkPolicy property: Network policy used for building the Kubernetes network.Get the outboundType property: The outbound (egress) routing method.podCidr()Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.podCidrs()Get the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs.Get the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs.Get the serviceCidrs property: The CIDR notation IP ranges from which to assign service cluster IPs.voidvalidate()Validates the instance.withDnsServiceIp(String dnsServiceIp) Set the dnsServiceIp property: An IP address assigned to the Kubernetes DNS service.withDockerBridgeCidr(String dockerBridgeCidr) Set the dockerBridgeCidr property: A CIDR notation IP range assigned to the Docker bridge network.withIpFamilies(List<IpFamily> ipFamilies) Set the ipFamilies property: The IP families used to specify IP versions available to the cluster.withLoadBalancerProfile(ManagedClusterLoadBalancerProfile loadBalancerProfile) Set the loadBalancerProfile property: Profile of the cluster load balancer.withLoadBalancerSku(LoadBalancerSku loadBalancerSku) Set the loadBalancerSku property: The load balancer sku for the managed cluster.withNatGatewayProfile(ManagedClusterNatGatewayProfile natGatewayProfile) Set the natGatewayProfile property: Profile of the cluster NAT gateway.withNetworkMode(NetworkMode networkMode) Set the networkMode property: The network mode Azure CNI is configured with.withNetworkPlugin(NetworkPlugin networkPlugin) Set the networkPlugin property: Network plugin used for building the Kubernetes network.withNetworkPolicy(NetworkPolicy networkPolicy) Set the networkPolicy property: Network policy used for building the Kubernetes network.withOutboundType(OutboundType outboundType) Set the outboundType property: The outbound (egress) routing method.withPodCidr(String podCidr) Set the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.withPodCidrs(List<String> podCidrs) Set the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs.withServiceCidr(String serviceCidr) Set the serviceCidr property: A CIDR notation IP range from which to assign service cluster IPs.withServiceCidrs(List<String> serviceCidrs) Set the serviceCidrs property: The CIDR notation IP ranges from which to assign service cluster IPs.
-
Constructor Details
-
ContainerServiceNetworkProfile
public ContainerServiceNetworkProfile()
-
-
Method Details
-
networkPlugin
Get the networkPlugin property: Network plugin used for building the Kubernetes network.- Returns:
- the networkPlugin value.
-
withNetworkPlugin
Set the networkPlugin property: Network plugin used for building the Kubernetes network.- Parameters:
networkPlugin- the networkPlugin value to set.- Returns:
- the ContainerServiceNetworkProfile object itself.
-
networkPolicy
Get the networkPolicy property: Network policy used for building the Kubernetes network.- Returns:
- the networkPolicy value.
-
withNetworkPolicy
Set the networkPolicy property: Network policy used for building the Kubernetes network.- Parameters:
networkPolicy- the networkPolicy value to set.- Returns:
- the ContainerServiceNetworkProfile object itself.
-
networkMode
Get the networkMode property: The network mode Azure CNI is configured with.This cannot be specified if networkPlugin is anything other than 'azure'.
- Returns:
- the networkMode value.
-
withNetworkMode
Set the networkMode property: The network mode Azure CNI is configured with.This cannot be specified if networkPlugin is anything other than 'azure'.
- Parameters:
networkMode- the networkMode value to set.- Returns:
- the ContainerServiceNetworkProfile object itself.
-
podCidr
Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.- Returns:
- the podCidr value.
-
withPodCidr
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.
-
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.
-
withServiceCidr
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.
-
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.
-
withDnsServiceIp
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.
-
dockerBridgeCidr
Get the dockerBridgeCidr property: A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range.- Returns:
- the dockerBridgeCidr value.
-
withDockerBridgeCidr
Set the dockerBridgeCidr property: A CIDR notation IP range assigned to the Docker bridge network. It must not overlap with any Subnet IP ranges or the Kubernetes service address range.- Parameters:
dockerBridgeCidr- the dockerBridgeCidr value to set.- Returns:
- the ContainerServiceNetworkProfile object itself.
-
outboundType
Get the outboundType property: The outbound (egress) routing method.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.
-
withOutboundType
Set the outboundType property: The outbound (egress) routing method.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.
-
loadBalancerSku
Get the loadBalancerSku property: The load balancer sku for the managed cluster.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.
-
withLoadBalancerSku
Set the loadBalancerSku property: The load balancer sku for the managed cluster.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.
-
loadBalancerProfile
Get the loadBalancerProfile property: Profile of the cluster load balancer.- Returns:
- the loadBalancerProfile value.
-
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.
-
natGatewayProfile
Get the natGatewayProfile property: Profile of the cluster NAT gateway.- Returns:
- the natGatewayProfile value.
-
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.
-
podCidrs
Get the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs.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.
-
withPodCidrs
Set the podCidrs property: The CIDR notation IP ranges from which to assign pod IPs.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.
-
serviceCidrs
Get the serviceCidrs property: The CIDR notation IP ranges from which to assign service cluster IPs.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.
-
withServiceCidrs
Set the serviceCidrs property: The CIDR notation IP ranges from which to assign service cluster IPs.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.
-
ipFamilies
Get the ipFamilies property: The IP families used to specify IP versions available to the cluster.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.
-
withIpFamilies
Set the ipFamilies property: The IP families used to specify IP versions available to the cluster.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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-