Class ContainerServiceNetworkProfile

java.lang.Object
com.microsoft.azure.management.containerservice.ContainerServiceNetworkProfile

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

    • ContainerServiceNetworkProfile

      public ContainerServiceNetworkProfile()
  • Method Details

    • networkPlugin

      public NetworkPlugin networkPlugin()
      Get network plugin used for building Kubernetes network. Possible values include: 'azure', 'kubenet'.
      Returns:
      the networkPlugin value
    • withNetworkPlugin

      public ContainerServiceNetworkProfile withNetworkPlugin(NetworkPlugin networkPlugin)
      Set network plugin used for building Kubernetes network. Possible values include: 'azure', 'kubenet'.
      Parameters:
      networkPlugin - the networkPlugin value to set
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • networkPolicy

      public NetworkPolicy networkPolicy()
      Get network policy used for building Kubernetes network. Possible values include: 'calico', 'azure'.
      Returns:
      the networkPolicy value
    • withNetworkPolicy

      public ContainerServiceNetworkProfile withNetworkPolicy(NetworkPolicy networkPolicy)
      Set network policy used for building Kubernetes network. Possible values include: 'calico', 'azure'.
      Parameters:
      networkPolicy - the networkPolicy value to set
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • networkMode

      public NetworkMode networkMode()
      Get network mode used for building Kubernetes network. Possible values include: 'transparent', 'bridge'.
      Returns:
      the networkMode value
    • withNetworkMode

      public ContainerServiceNetworkProfile withNetworkMode(NetworkMode networkMode)
      Set network mode used for building Kubernetes network. Possible values include: 'transparent', 'bridge'.
      Parameters:
      networkMode - the networkMode value to set
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • podCidr

      public String podCidr()
      Get 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 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 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 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 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 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 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 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 outbound (egress) routing method. Possible values include: 'loadBalancer', 'userDefinedRouting'.
      Returns:
      the outboundType value
    • withOutboundType

      public ContainerServiceNetworkProfile withOutboundType(OutboundType outboundType)
      Set the outbound (egress) routing method. Possible values include: 'loadBalancer', 'userDefinedRouting'.
      Parameters:
      outboundType - the outboundType value to set
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • loadBalancerSku

      public LoadBalancerSku loadBalancerSku()
      Get the load balancer sku for the managed cluster. Possible values include: 'standard', 'basic'.
      Returns:
      the loadBalancerSku value
    • withLoadBalancerSku

      public ContainerServiceNetworkProfile withLoadBalancerSku(LoadBalancerSku loadBalancerSku)
      Set the load balancer sku for the managed cluster. Possible values include: 'standard', 'basic'.
      Parameters:
      loadBalancerSku - the loadBalancerSku value to set
      Returns:
      the ContainerServiceNetworkProfile object itself.
    • loadBalancerProfile

      public ManagedClusterLoadBalancerProfile loadBalancerProfile()
      Get profile of the cluster load balancer.
      Returns:
      the loadBalancerProfile value
    • withLoadBalancerProfile

      public ContainerServiceNetworkProfile withLoadBalancerProfile(ManagedClusterLoadBalancerProfile loadBalancerProfile)
      Set profile of the cluster load balancer.
      Parameters:
      loadBalancerProfile - the loadBalancerProfile value to set
      Returns:
      the ContainerServiceNetworkProfile object itself.