Class ContainerServiceNetworkProfile
java.lang.Object
com.microsoft.azure.management.containerservice.ContainerServiceNetworkProfile
Profile of network configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet an IP address assigned to the Kubernetes DNS service.Get a CIDR notation IP range assigned to the Docker bridge network.Get profile of the cluster load balancer.Get the load balancer sku for the managed cluster.Get network mode used for building Kubernetes network.Get network plugin used for building Kubernetes network.Get network policy used for building Kubernetes network.Get the outbound (egress) routing method.podCidr()
Get a CIDR notation IP range from which to assign pod IPs when kubenet is used.Get a CIDR notation IP range from which to assign service cluster IPs.withDnsServiceIP
(String dnsServiceIP) Set an IP address assigned to the Kubernetes DNS service.withDockerBridgeCidr
(String dockerBridgeCidr) Set a CIDR notation IP range assigned to the Docker bridge network.withLoadBalancerProfile
(ManagedClusterLoadBalancerProfile loadBalancerProfile) Set profile of the cluster load balancer.withLoadBalancerSku
(LoadBalancerSku loadBalancerSku) Set the load balancer sku for the managed cluster.withNetworkMode
(NetworkMode networkMode) Set network mode used for building Kubernetes network.withNetworkPlugin
(NetworkPlugin networkPlugin) Set network plugin used for building Kubernetes network.withNetworkPolicy
(NetworkPolicy networkPolicy) Set network policy used for building Kubernetes network.withOutboundType
(OutboundType outboundType) Set the outbound (egress) routing method.withPodCidr
(String podCidr) Set a CIDR notation IP range from which to assign pod IPs when kubenet is used.withServiceCidr
(String serviceCidr) Set a CIDR notation IP range from which to assign service cluster IPs.
-
Constructor Details
-
ContainerServiceNetworkProfile
public ContainerServiceNetworkProfile()
-
-
Method Details
-
networkPlugin
Get network plugin used for building Kubernetes network. Possible values include: 'azure', 'kubenet'.- Returns:
- the networkPlugin value
-
withNetworkPlugin
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
Get network policy used for building Kubernetes network. Possible values include: 'calico', 'azure'.- Returns:
- the networkPolicy value
-
withNetworkPolicy
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
Get network mode used for building Kubernetes network. Possible values include: 'transparent', 'bridge'.- Returns:
- the networkMode value
-
withNetworkMode
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
Get a CIDR notation IP range from which to assign pod IPs when kubenet is used.- Returns:
- the podCidr value
-
withPodCidr
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
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
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
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
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
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
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
Get the outbound (egress) routing method. Possible values include: 'loadBalancer', 'userDefinedRouting'.- Returns:
- the outboundType value
-
withOutboundType
Set the outbound (egress) routing method. Possible values include: 'loadBalancer', 'userDefinedRouting'.- Parameters:
outboundType
- the outboundType value to set- Returns:
- the ContainerServiceNetworkProfile object itself.
-
loadBalancerSku
Get the load balancer sku for the managed cluster. Possible values include: 'standard', 'basic'.- Returns:
- the loadBalancerSku value
-
withLoadBalancerSku
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
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.
-