UNPKG

@pulumi/azure-native

Version:

[![Slack](http://www.pulumi.com/images/docs/badges/slack.svg)](https://slack.pulumi.com) [![NPM version](https://badge.fury.io/js/%40pulumi%2Fazure-native.svg)](https://npmjs.com/package/@pulumi/azure-native) [![Python version](https://badge.fury.io/py/pu

143 lines (142 loc) 5.5 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get properties of the provided Kubernetes cluster agent pool. * * Uses Azure REST API version 2025-02-01. * * Other available API versions: 2024-07-01, 2024-10-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native networkcloud [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getAgentPool(args: GetAgentPoolArgs, opts?: pulumi.InvokeOptions): Promise<GetAgentPoolResult>; export interface GetAgentPoolArgs { /** * The name of the Kubernetes cluster agent pool. */ agentPoolName: string; /** * The name of the Kubernetes cluster. */ kubernetesClusterName: string; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: string; } export interface GetAgentPoolResult { /** * The administrator credentials to be used for the nodes in this agent pool. */ readonly administratorConfiguration?: outputs.networkcloud.AdministratorConfigurationResponse; /** * The configurations that will be applied to each agent in this agent pool. */ readonly agentOptions?: outputs.networkcloud.AgentOptionsResponse; /** * The configuration of networks being attached to the agent pool for use by the workloads that run on this Kubernetes cluster. */ readonly attachedNetworkConfiguration?: outputs.networkcloud.AttachedNetworkConfigurationResponse; /** * The list of availability zones of the Network Cloud cluster used for the provisioning of nodes in this agent pool. If not specified, all availability zones will be used. */ readonly availabilityZones?: string[]; /** * The Azure API version of the resource. */ readonly azureApiVersion: string; /** * The number of virtual machines that use this configuration. */ readonly count: number; /** * The current status of the agent pool. */ readonly detailedStatus: string; /** * The descriptive message about the current detailed status. */ readonly detailedStatusMessage: string; /** * Resource ETag. */ readonly etag: string; /** * The extended location of the cluster associated with the resource. */ readonly extendedLocation?: outputs.networkcloud.ExtendedLocationResponse; /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" */ readonly id: string; /** * The Kubernetes version running in this agent pool. */ readonly kubernetesVersion: string; /** * The labels applied to the nodes in this agent pool. */ readonly labels?: outputs.networkcloud.KubernetesLabelResponse[]; /** * The geo-location where the resource lives */ readonly location: string; /** * The selection of how this agent pool is utilized, either as a system pool or a user pool. System pools run the features and critical services for the Kubernetes Cluster, while user pools are dedicated to user workloads. Every Kubernetes cluster must contain at least one system node pool with at least one node. */ readonly mode: string; /** * The name of the resource */ readonly name: string; /** * The provisioning state of the agent pool. */ readonly provisioningState: string; /** * Azure Resource Manager metadata containing createdBy and modifiedBy information. */ readonly systemData: outputs.networkcloud.SystemDataResponse; /** * Resource tags. */ readonly tags?: { [key: string]: string; }; /** * The taints applied to the nodes in this agent pool. */ readonly taints?: outputs.networkcloud.KubernetesLabelResponse[]; /** * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" */ readonly type: string; /** * The configuration of the agent pool. */ readonly upgradeSettings?: outputs.networkcloud.AgentPoolUpgradeSettingsResponse; /** * The name of the VM SKU that determines the size of resources allocated for node VMs. */ readonly vmSkuName: string; } /** * Get properties of the provided Kubernetes cluster agent pool. * * Uses Azure REST API version 2025-02-01. * * Other available API versions: 2024-07-01, 2024-10-01-preview. These can be accessed by generating a local SDK package using the CLI command `pulumi package add azure-native networkcloud [ApiVersion]`. See the [version guide](../../../version-guide/#accessing-any-api-version-via-local-packages) for details. */ export declare function getAgentPoolOutput(args: GetAgentPoolOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAgentPoolResult>; export interface GetAgentPoolOutputArgs { /** * The name of the Kubernetes cluster agent pool. */ agentPoolName: pulumi.Input<string>; /** * The name of the Kubernetes cluster. */ kubernetesClusterName: pulumi.Input<string>; /** * The name of the resource group. The name is case insensitive. */ resourceGroupName: pulumi.Input<string>; }