Interface KubernetesCluster
- All Superinterfaces:
GroupableResource<ContainerServiceManager,,ManagedClusterInner> HasId,HasInnerModel<ManagedClusterInner>,HasManager<ContainerServiceManager>,HasName,HasResourceGroup,Indexable,Refreshable<KubernetesCluster>,Resource,SupportsListingPrivateEndpointConnection,SupportsListingPrivateLinkResource,Updatable<KubernetesCluster.Update>
public interface KubernetesCluster
extends GroupableResource<ContainerServiceManager,ManagedClusterInner>, Refreshable<KubernetesCluster>, Updatable<KubernetesCluster.Update>, SupportsListingPrivateLinkResource, SupportsListingPrivateEndpointConnection
A client-side representation for a managed Kubernetes cluster.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface for all the definitions related to a Kubernetes cluster.static interfaceGrouping of Kubernetes cluster definition stages.static interfaceThe template for an update operation, containing all the settings that can be modified.static interfaceGrouping of the Kubernetes cluster update stages.Nested classes/interfaces inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
Resource.DefinitionWithRegion<T extends Object>, Resource.DefinitionWithTags<T extends Object>, Resource.UpdateWithTags<T extends Object> -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]beginCreateAgentPool(String agentPoolName, AgentPoolData agentPool) Begins creating the agent pool resource.booleanfqdn()booleanbooleansshKey()voidstart()Starts a stopped Kubernetes cluster.Starts a stopped Kubernetes cluster.voidstop()Stops a running Kubernetes cluster.Stops a running Kubernetes cluster.byte[]byte[]userKubeConfigContent(Format format) userKubeConfigs(Format format) version()Methods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.HasInnerModel
innerModelMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasManager
managerMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasName
nameMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.HasResourceGroup
resourceGroupNameMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.model.Refreshable
refresh, refreshAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.arm.models.Resource
region, regionName, tags, typeMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateEndpointConnection
listPrivateEndpointConnections, listPrivateEndpointConnectionsAsyncMethods inherited from interface com.azure.resourcemanager.resources.fluentcore.collection.SupportsListingPrivateLinkResource
listPrivateLinkResources, listPrivateLinkResourcesAsync
-
Method Details
-
provisioningState
String provisioningState()- Returns:
- the provisioning state of the Kubernetes cluster
-
dnsPrefix
String dnsPrefix()- Returns:
- the DNS prefix which was specified at creation time
-
fqdn
String fqdn()- Returns:
- the FQDN for the master pool
-
version
String version()- Returns:
- the Kubernetes version
-
adminKubeConfigContent
byte[] adminKubeConfigContent()- Returns:
- the Kubernetes configuration file content with administrative privileges to the cluster
-
userKubeConfigContent
byte[] userKubeConfigContent()- Returns:
- the Kubernetes configuration file content with user-level privileges to the cluster
-
userKubeConfigContent
- Parameters:
format- Only apply to AAD clusters, specifies the format of returned kubeconfig. Format 'azure' will return azure auth-provider kubeconfig; format 'exec' will return exec format kubeconfig, which requires kubelogin binary in the path.- Returns:
- the Kubernetes configuration file content with user-level privileges to the cluster
-
adminKubeConfigs
List<CredentialResult> adminKubeConfigs()- Returns:
- the Kubernetes credentials with administrative privileges to the cluster
-
userKubeConfigs
List<CredentialResult> userKubeConfigs()- Returns:
- the Kubernetes credentials with user-level privileges to the cluster
-
userKubeConfigs
- Parameters:
format- Only apply to AAD clusters, specifies the format of returned kubeconfig. Format 'azure' will return azure auth-provider kubeconfig; format 'exec' will return exec format kubeconfig, which requires kubelogin binary in the path.- Returns:
- the Kubernetes credentials with user-level privileges to the cluster
-
servicePrincipalClientId
String servicePrincipalClientId()- Returns:
- the service principal client ID
-
servicePrincipalSecret
String servicePrincipalSecret()- Returns:
- the service principal secret
-
linuxRootUsername
String linuxRootUsername()- Returns:
- the Linux root username
-
sshKey
String sshKey()- Returns:
- the Linux SSH key
-
agentPools
Map<String,KubernetesClusterAgentPool> agentPools()- Returns:
- the agent pools in the Kubernetes cluster
-
networkProfile
ContainerServiceNetworkProfile networkProfile()- Returns:
- the network profile settings for the cluster
-
addonProfiles
Map<String,ManagedClusterAddonProfile> addonProfiles()- Returns:
- the cluster's add-on's profiles
-
nodeResourceGroup
String nodeResourceGroup()- Returns:
- the name of the resource group containing agent pool nodes
-
enableRBAC
boolean enableRBAC()- Returns:
- true if Kubernetes Role-Based Access Control is enabled
-
powerState
PowerState powerState()- Returns:
- the power state
-
systemAssignedManagedServiceIdentityPrincipalId
String systemAssignedManagedServiceIdentityPrincipalId()- Returns:
- the System Assigned Managed Service Identity specific Active Directory service principal ID assigned to the Kubernetes cluster.
-
azureActiveDirectoryGroupIds
- Returns:
- the IDs (object IDs) of the Azure AD groups as the admin group of the cluster.
-
isLocalAccountsEnabled
boolean isLocalAccountsEnabled()- Returns:
- whether local accounts is enabled.
-
isAzureRbacEnabled
boolean isAzureRbacEnabled()- Returns:
- whether Azure Role-Based Access Control for Kubernetes authorization is enabled.
-
diskEncryptionSetId
String diskEncryptionSetId()- Returns:
- resource ID of the disk encryption set.
-
start
void start()Starts a stopped Kubernetes cluster. -
startAsync
Starts a stopped Kubernetes cluster.- Returns:
- the completion.
-
stop
void stop()Stops a running Kubernetes cluster. -
stopAsync
Stops a running Kubernetes cluster.- Returns:
- the completion.
-
beginCreateAgentPool
Begins creating the agent pool resource.- Parameters:
agentPoolName- the name of the agent pool.agentPool- the agent pool.- Returns:
- the accepted create operation
-