Class ContainerServiceNetworkProfile

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

public final class ContainerServiceNetworkProfile extends Object
Profile of network configuration.
  • Constructor Details

    • ContainerServiceNetworkProfile

      public ContainerServiceNetworkProfile()
  • Method Details

    • networkPlugin

      public NetworkPlugin networkPlugin()
      Get the networkPlugin property: Network plugin used for building the Kubernetes network.
      Returns:
      the networkPlugin value.
    • 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.
    • networkPolicy

      public NetworkPolicy networkPolicy()
      Get the networkPolicy property: Network policy used for building the Kubernetes network.
      Returns:
      the networkPolicy value.
    • 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.
    • networkMode

      public NetworkMode 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

      public ContainerServiceNetworkProfile withNetworkMode(NetworkMode networkMode)
      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

      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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • dockerBridgeCidr

      public String 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

      public ContainerServiceNetworkProfile withDockerBridgeCidr(String dockerBridgeCidr)
      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

      public OutboundType 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

      public ContainerServiceNetworkProfile withOutboundType(OutboundType outboundType)
      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

      public LoadBalancerSku 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

      public ContainerServiceNetworkProfile withLoadBalancerSku(LoadBalancerSku loadBalancerSku)
      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

      public ManagedClusterLoadBalancerProfile 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

      public ManagedClusterNatGatewayProfile 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

      public List<String> 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

      public ContainerServiceNetworkProfile withPodCidrs(List<String> podCidrs)
      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

      public List<String> 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

      public ContainerServiceNetworkProfile withServiceCidrs(List<String> serviceCidrs)
      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

      public List<IpFamily> 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

      public ContainerServiceNetworkProfile withIpFamilies(List<IpFamily> ipFamilies)
      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.