Class ManagedClusterPodIdentityProfile
java.lang.Object
com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile
The pod identity profile of the Managed Cluster.
See [use AAD pod identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity) for more details on pod
identity integration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ManagedClusterPodIdentityProfile class. -
Method Summary
Modifier and TypeMethodDescriptionGet the allowNetworkPluginKubenet property: Whether pod identity is allowed to run on clusters with Kubenet networking.enabled()Get the enabled property: Whether the pod identity addon is enabled.Get the userAssignedIdentities property: The pod identities to use in the cluster.Get the userAssignedIdentityExceptions property: The pod identity exceptions to allow.voidvalidate()Validates the instance.withAllowNetworkPluginKubenet(Boolean allowNetworkPluginKubenet) Set the allowNetworkPluginKubenet property: Whether pod identity is allowed to run on clusters with Kubenet networking.withEnabled(Boolean enabled) Set the enabled property: Whether the pod identity addon is enabled.withUserAssignedIdentities(List<ManagedClusterPodIdentity> userAssignedIdentities) Set the userAssignedIdentities property: The pod identities to use in the cluster.withUserAssignedIdentityExceptions(List<ManagedClusterPodIdentityException> userAssignedIdentityExceptions) Set the userAssignedIdentityExceptions property: The pod identity exceptions to allow.
-
Constructor Details
-
ManagedClusterPodIdentityProfile
public ManagedClusterPodIdentityProfile()Creates an instance of ManagedClusterPodIdentityProfile class.
-
-
Method Details
-
enabled
Get the enabled property: Whether the pod identity addon is enabled.- Returns:
- the enabled value.
-
withEnabled
Set the enabled property: Whether the pod identity addon is enabled.- Parameters:
enabled- the enabled value to set.- Returns:
- the ManagedClusterPodIdentityProfile object itself.
-
allowNetworkPluginKubenet
Get the allowNetworkPluginKubenet property: Whether pod identity is allowed to run on clusters with Kubenet networking. Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks of IP spoofing. See [using Kubenet network plugin with AAD Pod Identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity#using-kubenet-network-plugin-with-azure-active-directory-pod-managed-identities) for more information.- Returns:
- the allowNetworkPluginKubenet value.
-
withAllowNetworkPluginKubenet
public ManagedClusterPodIdentityProfile withAllowNetworkPluginKubenet(Boolean allowNetworkPluginKubenet) Set the allowNetworkPluginKubenet property: Whether pod identity is allowed to run on clusters with Kubenet networking. Running in Kubenet is disabled by default due to the security related nature of AAD Pod Identity and the risks of IP spoofing. See [using Kubenet network plugin with AAD Pod Identity](https://docs.microsoft.com/azure/aks/use-azure-ad-pod-identity#using-kubenet-network-plugin-with-azure-active-directory-pod-managed-identities) for more information.- Parameters:
allowNetworkPluginKubenet- the allowNetworkPluginKubenet value to set.- Returns:
- the ManagedClusterPodIdentityProfile object itself.
-
userAssignedIdentities
Get the userAssignedIdentities property: The pod identities to use in the cluster.- Returns:
- the userAssignedIdentities value.
-
withUserAssignedIdentities
public ManagedClusterPodIdentityProfile withUserAssignedIdentities(List<ManagedClusterPodIdentity> userAssignedIdentities) Set the userAssignedIdentities property: The pod identities to use in the cluster.- Parameters:
userAssignedIdentities- the userAssignedIdentities value to set.- Returns:
- the ManagedClusterPodIdentityProfile object itself.
-
userAssignedIdentityExceptions
Get the userAssignedIdentityExceptions property: The pod identity exceptions to allow.- Returns:
- the userAssignedIdentityExceptions value.
-
withUserAssignedIdentityExceptions
public ManagedClusterPodIdentityProfile withUserAssignedIdentityExceptions(List<ManagedClusterPodIdentityException> userAssignedIdentityExceptions) Set the userAssignedIdentityExceptions property: The pod identity exceptions to allow.- Parameters:
userAssignedIdentityExceptions- the userAssignedIdentityExceptions value to set.- Returns:
- the ManagedClusterPodIdentityProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-