ContainerServiceNetworkProfile Class
- java.
lang. Object - com.
azure. resourcemanager. containerservice. models. ContainerServiceNetworkProfile
- com.
Implements
public final class ContainerServiceNetworkProfile
implements JsonSerializable<ContainerServiceNetworkProfile>
Profile of network configuration.
Constructor Summary
Constructor | Description |
---|---|
ContainerServiceNetworkProfile() |
Creates an instance of Container |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
dnsServiceIp()
Get the dns |
static
Container |
fromJson(JsonReader jsonReader)
Reads an instance of Container |
List<Ip |
ipFamilies()
Get the ip |
Managed |
loadBalancerProfile()
Get the load |
Load |
loadBalancerSku()
Get the load |
Managed |
natGatewayProfile()
Get the nat |
Network |
networkDataplane()
Get the network |
Network |
networkMode()
Get the network |
Network |
networkPlugin()
Get the network |
Network |
networkPluginMode()
Get the network |
Network |
networkPolicy()
Get the network |
Outbound |
outboundType()
Get the outbound |
String |
podCidr()
Get the pod |
List<String> |
podCidrs()
Get the pod |
String |
serviceCidr()
Get the service |
List<String> |
serviceCidrs()
Get the service |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Container |
withDnsServiceIp(String dnsServiceIp)
Set the dns |
Container |
withIpFamilies(List<IpFamily> ipFamilies)
Set the ip |
Container |
withLoadBalancerProfile(ManagedClusterLoadBalancerProfile loadBalancerProfile)
Set the load |
Container |
withLoadBalancerSku(LoadBalancerSku loadBalancerSku)
Set the load |
Container |
withNatGatewayProfile(ManagedClusterNatGatewayProfile natGatewayProfile)
Set the nat |
Container |
withNetworkDataplane(NetworkDataplane networkDataplane)
Set the network |
Container |
withNetworkMode(NetworkMode networkMode)
Set the network |
Container |
withNetworkPlugin(NetworkPlugin networkPlugin)
Set the network |
Container |
withNetworkPluginMode(NetworkPluginMode networkPluginMode)
Set the network |
Container |
withNetworkPolicy(NetworkPolicy networkPolicy)
Set the network |
Container |
withOutboundType(OutboundType outboundType)
Set the outbound |
Container |
withPodCidr(String podCidr)
Set the pod |
Container |
withPodCidrs(List<String> podCidrs)
Set the pod |
Container |
withServiceCidr(String serviceCidr)
Set the service |
Container |
withServiceCidrs(List<String> serviceCidrs)
Set the service |
Methods inherited from java.lang.Object
Constructor Details
ContainerServiceNetworkProfile
public ContainerServiceNetworkProfile()
Creates an instance of ContainerServiceNetworkProfile class.
Method Details
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:
fromJson
public static ContainerServiceNetworkProfile fromJson(JsonReader jsonReader)
Reads an instance of ContainerServiceNetworkProfile from the JsonReader.
Parameters:
Returns:
Throws:
ipFamilies
public List
Get the ipFamilies property: 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:
loadBalancerProfile
public ManagedClusterLoadBalancerProfile loadBalancerProfile()
Get the loadBalancerProfile property: Profile of the cluster load balancer.
Returns:
loadBalancerSku
public LoadBalancerSku loadBalancerSku()
Get the loadBalancerSku property: 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:
natGatewayProfile
public ManagedClusterNatGatewayProfile natGatewayProfile()
Get the natGatewayProfile property: Profile of the cluster NAT gateway.
Returns:
networkDataplane
public NetworkDataplane networkDataplane()
Get the networkDataplane property: Network dataplane used in the Kubernetes cluster.
Returns:
networkMode
public NetworkMode networkMode()
Get the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.
Returns:
networkPlugin
public NetworkPlugin networkPlugin()
Get the networkPlugin property: Network plugin used for building the Kubernetes network.
Returns:
networkPluginMode
public NetworkPluginMode networkPluginMode()
Get the networkPluginMode property: The mode the network plugin should use.
Returns:
networkPolicy
public NetworkPolicy networkPolicy()
Get the networkPolicy property: Network policy used for building the Kubernetes network.
Returns:
outboundType
public OutboundType outboundType()
Get the outboundType property: 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:
podCidr
public String podCidr()
Get the podCidr property: A CIDR notation IP range from which to assign pod IPs when kubenet is used.
Returns:
podCidrs
public List
Get the podCidrs property: 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:
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:
serviceCidrs
public List
Get the serviceCidrs property: 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:
toJson
validate
public void validate()
Validates the instance.
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:
Returns:
withIpFamilies
public ContainerServiceNetworkProfile withIpFamilies(List
Set the ipFamilies property: 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:
Returns:
withLoadBalancerProfile
public ContainerServiceNetworkProfile withLoadBalancerProfile(ManagedClusterLoadBalancerProfile loadBalancerProfile)
Set the loadBalancerProfile property: Profile of the cluster load balancer.
Parameters:
Returns:
withLoadBalancerSku
public ContainerServiceNetworkProfile withLoadBalancerSku(LoadBalancerSku loadBalancerSku)
Set the loadBalancerSku property: 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:
Returns:
withNatGatewayProfile
public ContainerServiceNetworkProfile withNatGatewayProfile(ManagedClusterNatGatewayProfile natGatewayProfile)
Set the natGatewayProfile property: Profile of the cluster NAT gateway.
Parameters:
Returns:
withNetworkDataplane
public ContainerServiceNetworkProfile withNetworkDataplane(NetworkDataplane networkDataplane)
Set the networkDataplane property: Network dataplane used in the Kubernetes cluster.
Parameters:
Returns:
withNetworkMode
public ContainerServiceNetworkProfile withNetworkMode(NetworkMode networkMode)
Set the networkMode property: This cannot be specified if networkPlugin is anything other than 'azure'.
Parameters:
Returns:
withNetworkPlugin
public ContainerServiceNetworkProfile withNetworkPlugin(NetworkPlugin networkPlugin)
Set the networkPlugin property: Network plugin used for building the Kubernetes network.
Parameters:
Returns:
withNetworkPluginMode
public ContainerServiceNetworkProfile withNetworkPluginMode(NetworkPluginMode networkPluginMode)
Set the networkPluginMode property: The mode the network plugin should use.
Parameters:
Returns:
withNetworkPolicy
public ContainerServiceNetworkProfile withNetworkPolicy(NetworkPolicy networkPolicy)
Set the networkPolicy property: Network policy used for building the Kubernetes network.
Parameters:
Returns:
withOutboundType
public ContainerServiceNetworkProfile withOutboundType(OutboundType outboundType)
Set the outboundType property: 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:
Returns:
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:
Returns:
withPodCidrs
public ContainerServiceNetworkProfile withPodCidrs(List
Set the podCidrs property: 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:
Returns:
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:
Returns:
withServiceCidrs
public ContainerServiceNetworkProfile withServiceCidrs(List
Set the serviceCidrs property: 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:
Returns:
Applies to
Azure SDK for Java