Class NetworkProfile
java.lang.Object
com.azure.resourcemanager.hybridcontainerservice.models.NetworkProfile
NetworkProfile - Profile of network configuration.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the dnsServiceIp property: DNSServiceIP - An IP address assigned to the Kubernetes DNS service.Get the loadBalancerProfile property: LoadBalancerProfile - Profile of the cluster load balancer.Get the loadBalancerSku property: LoadBalancerSku - The load balancer sku for the provisioned cluster.Get the networkPolicy property: NetworkPolicy - Network policy used for building Kubernetes network.podCidr()
Get the podCidr property: PodCidr - 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: ServiceCidr - 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.void
validate()
Validates the instance.withDnsServiceIp
(String dnsServiceIp) Set the dnsServiceIp property: DNSServiceIP - An IP address assigned to the Kubernetes DNS service.withLoadBalancerProfile
(LoadBalancerProfile loadBalancerProfile) Set the loadBalancerProfile property: LoadBalancerProfile - Profile of the cluster load balancer.withLoadBalancerSku
(LoadBalancerSku loadBalancerSku) Set the loadBalancerSku property: LoadBalancerSku - The load balancer sku for the provisioned cluster.withNetworkPolicy
(NetworkPolicy networkPolicy) Set the networkPolicy property: NetworkPolicy - Network policy used for building Kubernetes network.withPodCidr
(String podCidr) Set the podCidr property: PodCidr - 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: ServiceCidr - 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
-
NetworkProfile
public NetworkProfile()Creates an instance of NetworkProfile class.
-
-
Method Details
-
loadBalancerProfile
Get the loadBalancerProfile property: LoadBalancerProfile - Profile of the cluster load balancer.- Returns:
- the loadBalancerProfile value.
-
withLoadBalancerProfile
Set the loadBalancerProfile property: LoadBalancerProfile - Profile of the cluster load balancer.- Parameters:
loadBalancerProfile
- the loadBalancerProfile value to set.- Returns:
- the NetworkProfile object itself.
-
loadBalancerSku
Get the loadBalancerSku property: LoadBalancerSku - The load balancer sku for the provisioned cluster. Possible values: 'unstacked-haproxy', 'stacked-kube-vip', 'stacked-metallb', 'unmanaged'. The default is 'unmanaged'.- Returns:
- the loadBalancerSku value.
-
withLoadBalancerSku
Set the loadBalancerSku property: LoadBalancerSku - The load balancer sku for the provisioned cluster. Possible values: 'unstacked-haproxy', 'stacked-kube-vip', 'stacked-metallb', 'unmanaged'. The default is 'unmanaged'.- Parameters:
loadBalancerSku
- the loadBalancerSku value to set.- Returns:
- the NetworkProfile object itself.
-
dnsServiceIp
Get the dnsServiceIp property: DNSServiceIP - 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: DNSServiceIP - 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 NetworkProfile object itself.
-
networkPolicy
Get the networkPolicy property: NetworkPolicy - Network policy used for building Kubernetes network. Possible values include: 'calico', 'flannel'. Default is 'calico'.- Returns:
- the networkPolicy value.
-
withNetworkPolicy
Set the networkPolicy property: NetworkPolicy - Network policy used for building Kubernetes network. Possible values include: 'calico', 'flannel'. Default is 'calico'.- Parameters:
networkPolicy
- the networkPolicy value to set.- Returns:
- the NetworkProfile object itself.
-
podCidr
Get the podCidr property: PodCidr - A CIDR notation IP range from which to assign pod IPs when kubenet is used.- Returns:
- the podCidr value.
-
withPodCidr
Set the podCidr property: PodCidr - A CIDR notation IP range from which to assign pod IPs when kubenet is used.- Parameters:
podCidr
- the podCidr value to set.- Returns:
- the NetworkProfile 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 NetworkProfile object itself.
-
serviceCidr
Get the serviceCidr property: ServiceCidr - 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: ServiceCidr - 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 NetworkProfile 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 NetworkProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-