GetClusterNodePool
Use this data source to access information about an existing Kubernetes Cluster Node Pool.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.ContainerService.GetClusterNodePool.InvokeAsync(new Azure.ContainerService.GetClusterNodePoolArgs
{
Name = "existing",
KubernetesClusterName = "existing-cluster",
ResourceGroupName = "existing-resource-group",
}));
this.Id = example.Apply(example => example.Id);
}
[Output("id")]
public Output<string> Id { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/containerservice"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := containerservice.GetClusterNodePool(ctx, &containerservice.GetClusterNodePoolArgs{
Name: "existing",
KubernetesClusterName: "existing-cluster",
ResourceGroupName: "existing-resource-group",
}, nil)
if err != nil {
return err
}
ctx.Export("id", example.Id)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.containerservice.get_cluster_node_pool(name="existing",
kubernetes_cluster_name="existing-cluster",
resource_group_name="existing-resource-group")
pulumi.export("id", example.id)import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.containerservice.getClusterNodePool({
name: "existing",
kubernetesClusterName: "existing-cluster",
resourceGroupName: "existing-resource-group",
});
export const id = example.then(example => example.id);Using GetClusterNodePool
function getClusterNodePool(args: GetClusterNodePoolArgs, opts?: InvokeOptions): Promise<GetClusterNodePoolResult>function get_cluster_node_pool(kubernetes_cluster_name=None, name=None, resource_group_name=None, opts=None)func GetClusterNodePool(ctx *Context, args *GetClusterNodePoolArgs, opts ...InvokeOption) (*GetClusterNodePoolResult, error)public static class GetClusterNodePool {
public static Task<GetClusterNodePoolResult> InvokeAsync(GetClusterNodePoolArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Kubernetes
Cluster stringName The Name of the Kubernetes Cluster where this Node Pool is located.
- Name string
The name of this Kubernetes Cluster Node Pool.
- Resource
Group stringName The name of the Resource Group where the Kubernetes Cluster exists.
- Kubernetes
Cluster stringName The Name of the Kubernetes Cluster where this Node Pool is located.
- Name string
The name of this Kubernetes Cluster Node Pool.
- Resource
Group stringName The name of the Resource Group where the Kubernetes Cluster exists.
- kubernetes
Cluster stringName The Name of the Kubernetes Cluster where this Node Pool is located.
- name string
The name of this Kubernetes Cluster Node Pool.
- resource
Group stringName The name of the Resource Group where the Kubernetes Cluster exists.
- kubernetes_
cluster_ strname The Name of the Kubernetes Cluster where this Node Pool is located.
- name str
The name of this Kubernetes Cluster Node Pool.
- resource_
group_ strname The name of the Resource Group where the Kubernetes Cluster exists.
GetClusterNodePool Result
The following output properties are available:
- Availability
Zones List<string> A list of Availability Zones in which the Nodes in this Node Pool exists.
- Enable
Auto boolScaling Does this Node Pool have Auto-Scaling enabled?
- Enable
Node boolPublic Ip Do nodes in this Node Pool have a Public IP Address?
- Eviction
Policy string The eviction policy used for Virtual Machines in the Virtual Machine Scale Set, when
priorityis set toSpot.- Id string
The provider-assigned unique ID for this managed resource.
- Kubernetes
Cluster stringName - Max
Count int The maximum number of Nodes allowed when auto-scaling is enabled.
- Max
Pods int The maximum number of Pods allowed on each Node in this Node Pool.
- Min
Count int The minimum number of Nodes allowed when auto-scaling is enabled.
- Mode string
The Mode for this Node Pool, specifying how these Nodes should be used (for either System or User resources).
- Name string
- Node
Count int The current number of Nodes in the Node Pool.
- Node
Labels Dictionary<string, string> A map of Kubernetes Labels applied to each Node in this Node Pool.
- Node
Taints List<string> A map of Kubernetes Taints applied to each Node in this Node Pool.
- Orchestrator
Version string The version of Kubernetes configured on each Node in this Node Pool.
- Os
Disk intSize Gb The size of the OS Disk on each Node in this Node Pool.
- Os
Type string The operating system used on each Node in this Node Pool.
- Priority string
The priority of the Virtual Machines in the Virtual Machine Scale Set backing this Node Pool.
- Resource
Group stringName - Spot
Max doublePrice The maximum price being paid for Virtual Machines in this Scale Set.
-1means the current on-demand price for a Virtual Machine.- Dictionary<string, string>
A mapping of tags assigned to the Kubernetes Cluster Node Pool.
- Vm
Size string The size of the Virtual Machines used in the Virtual Machine Scale Set backing this Node Pool.
- Vnet
Subnet stringId The ID of the Subnet in which this Node Pool exists.
- Availability
Zones []string A list of Availability Zones in which the Nodes in this Node Pool exists.
- Enable
Auto boolScaling Does this Node Pool have Auto-Scaling enabled?
- Enable
Node boolPublic Ip Do nodes in this Node Pool have a Public IP Address?
- Eviction
Policy string The eviction policy used for Virtual Machines in the Virtual Machine Scale Set, when
priorityis set toSpot.- Id string
The provider-assigned unique ID for this managed resource.
- Kubernetes
Cluster stringName - Max
Count int The maximum number of Nodes allowed when auto-scaling is enabled.
- Max
Pods int The maximum number of Pods allowed on each Node in this Node Pool.
- Min
Count int The minimum number of Nodes allowed when auto-scaling is enabled.
- Mode string
The Mode for this Node Pool, specifying how these Nodes should be used (for either System or User resources).
- Name string
- Node
Count int The current number of Nodes in the Node Pool.
- Node
Labels map[string]string A map of Kubernetes Labels applied to each Node in this Node Pool.
- Node
Taints []string A map of Kubernetes Taints applied to each Node in this Node Pool.
- Orchestrator
Version string The version of Kubernetes configured on each Node in this Node Pool.
- Os
Disk intSize Gb The size of the OS Disk on each Node in this Node Pool.
- Os
Type string The operating system used on each Node in this Node Pool.
- Priority string
The priority of the Virtual Machines in the Virtual Machine Scale Set backing this Node Pool.
- Resource
Group stringName - Spot
Max float64Price The maximum price being paid for Virtual Machines in this Scale Set.
-1means the current on-demand price for a Virtual Machine.- map[string]string
A mapping of tags assigned to the Kubernetes Cluster Node Pool.
- Vm
Size string The size of the Virtual Machines used in the Virtual Machine Scale Set backing this Node Pool.
- Vnet
Subnet stringId The ID of the Subnet in which this Node Pool exists.
- availability
Zones string[] A list of Availability Zones in which the Nodes in this Node Pool exists.
- enable
Auto booleanScaling Does this Node Pool have Auto-Scaling enabled?
- enable
Node booleanPublic Ip Do nodes in this Node Pool have a Public IP Address?
- eviction
Policy string The eviction policy used for Virtual Machines in the Virtual Machine Scale Set, when
priorityis set toSpot.- id string
The provider-assigned unique ID for this managed resource.
- kubernetes
Cluster stringName - max
Count number The maximum number of Nodes allowed when auto-scaling is enabled.
- max
Pods number The maximum number of Pods allowed on each Node in this Node Pool.
- min
Count number The minimum number of Nodes allowed when auto-scaling is enabled.
- mode string
The Mode for this Node Pool, specifying how these Nodes should be used (for either System or User resources).
- name string
- node
Count number The current number of Nodes in the Node Pool.
- node
Labels {[key: string]: string} A map of Kubernetes Labels applied to each Node in this Node Pool.
- node
Taints string[] A map of Kubernetes Taints applied to each Node in this Node Pool.
- orchestrator
Version string The version of Kubernetes configured on each Node in this Node Pool.
- os
Disk numberSize Gb The size of the OS Disk on each Node in this Node Pool.
- os
Type string The operating system used on each Node in this Node Pool.
- priority string
The priority of the Virtual Machines in the Virtual Machine Scale Set backing this Node Pool.
- resource
Group stringName - spot
Max numberPrice The maximum price being paid for Virtual Machines in this Scale Set.
-1means the current on-demand price for a Virtual Machine.- {[key: string]: string}
A mapping of tags assigned to the Kubernetes Cluster Node Pool.
- vm
Size string The size of the Virtual Machines used in the Virtual Machine Scale Set backing this Node Pool.
- vnet
Subnet stringId The ID of the Subnet in which this Node Pool exists.
- availability_
zones List[str] A list of Availability Zones in which the Nodes in this Node Pool exists.
- enable_
auto_ boolscaling Does this Node Pool have Auto-Scaling enabled?
- enable_
node_ boolpublic_ ip Do nodes in this Node Pool have a Public IP Address?
- eviction_
policy str The eviction policy used for Virtual Machines in the Virtual Machine Scale Set, when
priorityis set toSpot.- id str
The provider-assigned unique ID for this managed resource.
- kubernetes_
cluster_ strname - max_
count float The maximum number of Nodes allowed when auto-scaling is enabled.
- max_
pods float The maximum number of Pods allowed on each Node in this Node Pool.
- min_
count float The minimum number of Nodes allowed when auto-scaling is enabled.
- mode str
The Mode for this Node Pool, specifying how these Nodes should be used (for either System or User resources).
- name str
- node_
count float The current number of Nodes in the Node Pool.
- node_
labels Dict[str, str] A map of Kubernetes Labels applied to each Node in this Node Pool.
- node_
taints List[str] A map of Kubernetes Taints applied to each Node in this Node Pool.
- orchestrator_
version str The version of Kubernetes configured on each Node in this Node Pool.
- os_
disk_ floatsize_ gb The size of the OS Disk on each Node in this Node Pool.
- os_
type str The operating system used on each Node in this Node Pool.
- priority str
The priority of the Virtual Machines in the Virtual Machine Scale Set backing this Node Pool.
- resource_
group_ strname - spot_
max_ floatprice The maximum price being paid for Virtual Machines in this Scale Set.
-1means the current on-demand price for a Virtual Machine.- Dict[str, str]
A mapping of tags assigned to the Kubernetes Cluster Node Pool.
- vm_
size str The size of the Virtual Machines used in the Virtual Machine Scale Set backing this Node Pool.
- vnet_
subnet_ strid The ID of the Subnet in which this Node Pool exists.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.