AgentPool

class AgentPool : KotlinCustomResource

The agentPool resource definition API Version: 2022-05-01-preview.

Example Usage

PutAgentPool

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var agentPool = new AzureNative.HybridContainerService.AgentPool("agentPool", new()
{
AgentPoolName = "test-hybridaksnodepool",
Count = 1,
Location = "westus",
OsType = "Linux",
ProvisionedClustersName = "test-hybridakscluster",
ResourceGroupName = "test-arcappliance-resgrp",
VmSize = "Standard_A4_v2",
});
});
package main
import (
hybridcontainerservice "github.com/pulumi/pulumi-azure-native-sdk/hybridcontainerservice"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybridcontainerservice.NewagentPool(ctx, "agentPool", &hybridcontainerservice.agentPoolArgs{
AgentPoolName: pulumi.String("test-hybridaksnodepool"),
Count: pulumi.Int(1),
Location: pulumi.String("westus"),
OsType: pulumi.String("Linux"),
ProvisionedClustersName: pulumi.String("test-hybridakscluster"),
ResourceGroupName: pulumi.String("test-arcappliance-resgrp"),
VmSize: pulumi.String("Standard_A4_v2"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.hybridcontainerservice.agentPool;
import com.pulumi.azurenative.hybridcontainerservice.AgentPoolArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var agentPool = new AgentPool("agentPool", AgentPoolArgs.builder()
.agentPoolName("test-hybridaksnodepool")
.count(1)
.location("westus")
.osType("Linux")
.provisionedClustersName("test-hybridakscluster")
.resourceGroupName("test-arcappliance-resgrp")
.vmSize("Standard_A4_v2")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:hybridcontainerservice:agentPool test-hybridaksnodepool /subscriptions/a3e42606-29b1-4d7d-b1d9-9ff6b9d3c71b/resourceGroups/test-arcappliance-resgrp/providers/Microsoft.HybridContainerService/provisionedClusters/test-hybridakscluster/agentPools/test-hybridaksnodepool

Properties

Link copied to clipboard

AvailabilityZones - The list of Availability zones to use for nodes. Datacenter racks modelled as zones

Link copied to clipboard

The underlying cloud infra provider properties.

Link copied to clipboard
val count: Output<Int>?

Count - Number of agents to host docker containers. Allowed values must be in the range of 1 to 100 (inclusive). The default value is 1.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>?

The resource location

Link copied to clipboard
val maxCount: Output<Int>?

The maximum number of nodes for auto-scaling

Link copied to clipboard
val maxPods: Output<Int>?

The maximum number of pods that can run on a node.

Link copied to clipboard
val minCount: Output<Int>?

The minimum number of nodes for auto-scaling

Link copied to clipboard
val mode: Output<String>?

Mode - AgentPoolMode represents mode of an agent pool. Possible values include: 'System', 'LB', 'User'. Default is 'User'

Link copied to clipboard
val name: Output<String>

Resource Name

Link copied to clipboard
val nodeImageVersion: Output<String>?

The version of node image

Link copied to clipboard
val nodeLabels: Output<Map<String, String>>?

NodeLabels - Agent pool node labels to be persisted across all nodes in agent pool.

Link copied to clipboard
val nodeTaints: Output<List<String>>?

NodeTaints - Taints added to new nodes during node pool create and scale. For example, key=value:NoSchedule.

Link copied to clipboard
val osType: Output<String>?

OsType - OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'

Link copied to clipboard
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool

Link copied to clipboard

Metadata pertaining to creation and last modification of the resource.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags

Link copied to clipboard
val type: Output<String>

Resource Type

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val vmSize: Output<String>?

VmSize - The size of the agent pool VMs.