AgentPoolArgs

data class AgentPoolArgs(val agentPoolName: Output<String>? = null, val availabilityZones: Output<List<String>>? = null, val cloudProviderProfile: Output<CloudProviderProfileArgs>? = null, val count: Output<Int>? = null, val extendedLocation: Output<AgentPoolExtendedLocationArgs>? = null, val location: Output<String>? = null, val maxCount: Output<Int>? = null, val maxPods: Output<Int>? = null, val minCount: Output<Int>? = null, val mode: Output<Either<String, Mode>>? = null, val nodeImageVersion: Output<String>? = null, val nodeLabels: Output<Map<String, String>>? = null, val nodeTaints: Output<List<String>>? = null, val osType: Output<Either<String, OsType>>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val status: Output<AgentPoolProvisioningStatusStatusArgs>? = null, val tags: Output<Map<String, String>>? = null, val vmSize: Output<String>? = null) : ConvertibleToJava<AgentPoolArgs>

The agentPool resource definition Uses Azure REST API version 2022-09-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 = AzureNative.HybridContainerService.OsType.Linux,
ResourceGroupName = "test-arcappliance-resgrp",
ResourceName = "test-hybridakscluster",
VmSize = "Standard_A4_v2",
});
});
package main
import (
hybridcontainerservice "github.com/pulumi/pulumi-azure-native-sdk/hybridcontainerservice/v3"
"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(hybridcontainerservice.OsTypeLinux),
ResourceGroupName: pulumi.String("test-arcappliance-resgrp"),
ResourceName: pulumi.String("test-hybridakscluster"),
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")
.resourceGroupName("test-arcappliance-resgrp")
.resourceName("test-hybridakscluster")
.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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridContainerService/provisionedClusters/{resourceName}/agentPools/{agentPoolName}

Constructors

Link copied to clipboard
constructor(agentPoolName: Output<String>? = null, availabilityZones: Output<List<String>>? = null, cloudProviderProfile: Output<CloudProviderProfileArgs>? = null, count: Output<Int>? = null, extendedLocation: Output<AgentPoolExtendedLocationArgs>? = null, location: Output<String>? = null, maxCount: Output<Int>? = null, maxPods: Output<Int>? = null, minCount: Output<Int>? = null, mode: Output<Either<String, Mode>>? = null, nodeImageVersion: Output<String>? = null, nodeLabels: Output<Map<String, String>>? = null, nodeTaints: Output<List<String>>? = null, osType: Output<Either<String, OsType>>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, status: Output<AgentPoolProvisioningStatusStatusArgs>? = null, tags: Output<Map<String, String>>? = null, vmSize: Output<String>? = null)

Properties

Link copied to clipboard
val agentPoolName: Output<String>? = null

Parameter for the name of the agent pool in the provisioned cluster

Link copied to clipboard
val availabilityZones: Output<List<String>>? = null

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>? = null

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
Link copied to clipboard
val location: Output<String>? = null

The resource location

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

The maximum number of nodes for auto-scaling

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

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

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

The minimum number of nodes for auto-scaling

Link copied to clipboard
val mode: Output<Either<String, Mode>>? = null

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

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

The version of node image

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

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

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

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

Link copied to clipboard
val osType: Output<Either<String, OsType>>? = null

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
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val resourceName: Output<String>? = null

Parameter for the name of the provisioned cluster

Link copied to clipboard

HybridAKSNodePoolStatus defines the observed state of HybridAKSNodePool

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

Resource tags

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

VmSize - The size of the agent pool VMs.

Functions

Link copied to clipboard
open override fun toJava(): AgentPoolArgs