1. Packages
  2. Azure Native
  3. API Docs
  4. containerservice
  5. LoadBalancer
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

azure-native.containerservice.LoadBalancer

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi

    The configurations regarding multiple standard load balancers. If not supplied, single load balancer mode will be used. Multiple standard load balancers mode will be used if at lease one configuration is supplied. There has to be a configuration named kubernetes. Azure REST API version: 2024-03-02-preview.

    Other available API versions: 2024-04-02-preview, 2024-05-02-preview, 2024-06-02-preview, 2024-07-02-preview, 2024-09-02-preview.

    Example Usage

    Create or update a Load Balancer

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var loadBalancer = new AzureNative.ContainerService.LoadBalancer("loadBalancer", new()
        {
            AllowServicePlacement = true,
            LoadBalancerName = "kubernetes",
            Name = "kubernetes",
            PrimaryAgentPoolName = "agentpool1",
            ResourceGroupName = "rg1",
            ResourceName = "clustername1",
        });
    
    });
    
    package main
    
    import (
    	containerservice "github.com/pulumi/pulumi-azure-native-sdk/containerservice/v2"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := containerservice.NewLoadBalancer(ctx, "loadBalancer", &containerservice.LoadBalancerArgs{
    			AllowServicePlacement: pulumi.Bool(true),
    			LoadBalancerName:      pulumi.String("kubernetes"),
    			Name:                  pulumi.String("kubernetes"),
    			PrimaryAgentPoolName:  pulumi.String("agentpool1"),
    			ResourceGroupName:     pulumi.String("rg1"),
    			ResourceName:          pulumi.String("clustername1"),
    		})
    		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.containerservice.LoadBalancer;
    import com.pulumi.azurenative.containerservice.LoadBalancerArgs;
    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 loadBalancer = new LoadBalancer("loadBalancer", LoadBalancerArgs.builder()
                .allowServicePlacement(true)
                .loadBalancerName("kubernetes")
                .name("kubernetes")
                .primaryAgentPoolName("agentpool1")
                .resourceGroupName("rg1")
                .resourceName("clustername1")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    load_balancer = azure_native.containerservice.LoadBalancer("loadBalancer",
        allow_service_placement=True,
        load_balancer_name="kubernetes",
        name="kubernetes",
        primary_agent_pool_name="agentpool1",
        resource_group_name="rg1",
        resource_name_="clustername1")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const loadBalancer = new azure_native.containerservice.LoadBalancer("loadBalancer", {
        allowServicePlacement: true,
        loadBalancerName: "kubernetes",
        name: "kubernetes",
        primaryAgentPoolName: "agentpool1",
        resourceGroupName: "rg1",
        resourceName: "clustername1",
    });
    
    resources:
      loadBalancer:
        type: azure-native:containerservice:LoadBalancer
        properties:
          allowServicePlacement: true
          loadBalancerName: kubernetes
          name: kubernetes
          primaryAgentPoolName: agentpool1
          resourceGroupName: rg1
          resourceName: clustername1
    

    Create LoadBalancer Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LoadBalancer(name: string, args: LoadBalancerArgs, opts?: CustomResourceOptions);
    @overload
    def LoadBalancer(resource_name: str,
                     args: LoadBalancerArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoadBalancer(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     name: Optional[str] = None,
                     primary_agent_pool_name: Optional[str] = None,
                     resource_group_name: Optional[str] = None,
                     resource_name_: Optional[str] = None,
                     allow_service_placement: Optional[bool] = None,
                     load_balancer_name: Optional[str] = None,
                     node_selector: Optional[LabelSelectorArgs] = None,
                     service_label_selector: Optional[LabelSelectorArgs] = None,
                     service_namespace_selector: Optional[LabelSelectorArgs] = None)
    func NewLoadBalancer(ctx *Context, name string, args LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)
    public LoadBalancer(string name, LoadBalancerArgs args, CustomResourceOptions? opts = null)
    public LoadBalancer(String name, LoadBalancerArgs args)
    public LoadBalancer(String name, LoadBalancerArgs args, CustomResourceOptions options)
    
    type: azure-native:containerservice:LoadBalancer
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LoadBalancerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LoadBalancerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LoadBalancerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoadBalancerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoadBalancerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var loadBalancerResource = new AzureNative.ContainerService.LoadBalancer("loadBalancerResource", new()
    {
        Name = "string",
        PrimaryAgentPoolName = "string",
        ResourceGroupName = "string",
        ResourceName = "string",
        AllowServicePlacement = false,
        LoadBalancerName = "string",
        NodeSelector = new AzureNative.ContainerService.Inputs.LabelSelectorArgs
        {
            MatchExpressions = new[]
            {
                new AzureNative.ContainerService.Inputs.LabelSelectorRequirementArgs
                {
                    Key = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
            MatchLabels = new[]
            {
                "string",
            },
        },
        ServiceLabelSelector = new AzureNative.ContainerService.Inputs.LabelSelectorArgs
        {
            MatchExpressions = new[]
            {
                new AzureNative.ContainerService.Inputs.LabelSelectorRequirementArgs
                {
                    Key = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
            MatchLabels = new[]
            {
                "string",
            },
        },
        ServiceNamespaceSelector = new AzureNative.ContainerService.Inputs.LabelSelectorArgs
        {
            MatchExpressions = new[]
            {
                new AzureNative.ContainerService.Inputs.LabelSelectorRequirementArgs
                {
                    Key = "string",
                    Operator = "string",
                    Values = new[]
                    {
                        "string",
                    },
                },
            },
            MatchLabels = new[]
            {
                "string",
            },
        },
    });
    
    example, err := containerservice.NewLoadBalancer(ctx, "loadBalancerResource", &containerservice.LoadBalancerArgs{
    	Name:                  pulumi.String("string"),
    	PrimaryAgentPoolName:  pulumi.String("string"),
    	ResourceGroupName:     pulumi.String("string"),
    	ResourceName:          pulumi.String("string"),
    	AllowServicePlacement: pulumi.Bool(false),
    	LoadBalancerName:      pulumi.String("string"),
    	NodeSelector: &containerservice.LabelSelectorArgs{
    		MatchExpressions: containerservice.LabelSelectorRequirementArray{
    			&containerservice.LabelSelectorRequirementArgs{
    				Key:      pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		MatchLabels: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ServiceLabelSelector: &containerservice.LabelSelectorArgs{
    		MatchExpressions: containerservice.LabelSelectorRequirementArray{
    			&containerservice.LabelSelectorRequirementArgs{
    				Key:      pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		MatchLabels: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    	ServiceNamespaceSelector: &containerservice.LabelSelectorArgs{
    		MatchExpressions: containerservice.LabelSelectorRequirementArray{
    			&containerservice.LabelSelectorRequirementArgs{
    				Key:      pulumi.String("string"),
    				Operator: pulumi.String("string"),
    				Values: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    		MatchLabels: pulumi.StringArray{
    			pulumi.String("string"),
    		},
    	},
    })
    
    var loadBalancerResource = new LoadBalancer("loadBalancerResource", LoadBalancerArgs.builder()
        .name("string")
        .primaryAgentPoolName("string")
        .resourceGroupName("string")
        .resourceName("string")
        .allowServicePlacement(false)
        .loadBalancerName("string")
        .nodeSelector(LabelSelectorArgs.builder()
            .matchExpressions(LabelSelectorRequirementArgs.builder()
                .key("string")
                .operator("string")
                .values("string")
                .build())
            .matchLabels("string")
            .build())
        .serviceLabelSelector(LabelSelectorArgs.builder()
            .matchExpressions(LabelSelectorRequirementArgs.builder()
                .key("string")
                .operator("string")
                .values("string")
                .build())
            .matchLabels("string")
            .build())
        .serviceNamespaceSelector(LabelSelectorArgs.builder()
            .matchExpressions(LabelSelectorRequirementArgs.builder()
                .key("string")
                .operator("string")
                .values("string")
                .build())
            .matchLabels("string")
            .build())
        .build());
    
    load_balancer_resource = azure_native.containerservice.LoadBalancer("loadBalancerResource",
        name="string",
        primary_agent_pool_name="string",
        resource_group_name="string",
        resource_name_="string",
        allow_service_placement=False,
        load_balancer_name="string",
        node_selector={
            "match_expressions": [{
                "key": "string",
                "operator": "string",
                "values": ["string"],
            }],
            "match_labels": ["string"],
        },
        service_label_selector={
            "match_expressions": [{
                "key": "string",
                "operator": "string",
                "values": ["string"],
            }],
            "match_labels": ["string"],
        },
        service_namespace_selector={
            "match_expressions": [{
                "key": "string",
                "operator": "string",
                "values": ["string"],
            }],
            "match_labels": ["string"],
        })
    
    const loadBalancerResource = new azure_native.containerservice.LoadBalancer("loadBalancerResource", {
        name: "string",
        primaryAgentPoolName: "string",
        resourceGroupName: "string",
        resourceName: "string",
        allowServicePlacement: false,
        loadBalancerName: "string",
        nodeSelector: {
            matchExpressions: [{
                key: "string",
                operator: "string",
                values: ["string"],
            }],
            matchLabels: ["string"],
        },
        serviceLabelSelector: {
            matchExpressions: [{
                key: "string",
                operator: "string",
                values: ["string"],
            }],
            matchLabels: ["string"],
        },
        serviceNamespaceSelector: {
            matchExpressions: [{
                key: "string",
                operator: "string",
                values: ["string"],
            }],
            matchLabels: ["string"],
        },
    });
    
    type: azure-native:containerservice:LoadBalancer
    properties:
        allowServicePlacement: false
        loadBalancerName: string
        name: string
        nodeSelector:
            matchExpressions:
                - key: string
                  operator: string
                  values:
                    - string
            matchLabels:
                - string
        primaryAgentPoolName: string
        resourceGroupName: string
        resourceName: string
        serviceLabelSelector:
            matchExpressions:
                - key: string
                  operator: string
                  values:
                    - string
            matchLabels:
                - string
        serviceNamespaceSelector:
            matchExpressions:
                - key: string
                  operator: string
                  values:
                    - string
            matchLabels:
                - string
    

    LoadBalancer Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LoadBalancer resource accepts the following input properties:

    Name string
    Name of the public load balancer. There will be an internal load balancer created if needed, and the name will be <name>-internal. The internal lb shares the same configurations as the external one. The internal lbs are not needed to be included in LoadBalancer list. There must be a name of kubernetes in the list.
    PrimaryAgentPoolName string
    Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the managed cluster resource.
    AllowServicePlacement bool
    Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
    LoadBalancerName string
    The name of the load balancer.
    NodeSelector Pulumi.AzureNative.ContainerService.Inputs.LabelSelector
    Nodes that match this selector will be possible members of this load balancer.
    ServiceLabelSelector Pulumi.AzureNative.ContainerService.Inputs.LabelSelector
    Only services that must match this selector can be placed on this load balancer.
    ServiceNamespaceSelector Pulumi.AzureNative.ContainerService.Inputs.LabelSelector
    Services created in namespaces that match the selector can be placed on this load balancer.
    Name string
    Name of the public load balancer. There will be an internal load balancer created if needed, and the name will be <name>-internal. The internal lb shares the same configurations as the external one. The internal lbs are not needed to be included in LoadBalancer list. There must be a name of kubernetes in the list.
    PrimaryAgentPoolName string
    Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the managed cluster resource.
    AllowServicePlacement bool
    Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
    LoadBalancerName string
    The name of the load balancer.
    NodeSelector LabelSelectorArgs
    Nodes that match this selector will be possible members of this load balancer.
    ServiceLabelSelector LabelSelectorArgs
    Only services that must match this selector can be placed on this load balancer.
    ServiceNamespaceSelector LabelSelectorArgs
    Services created in namespaces that match the selector can be placed on this load balancer.
    name String
    Name of the public load balancer. There will be an internal load balancer created if needed, and the name will be <name>-internal. The internal lb shares the same configurations as the external one. The internal lbs are not needed to be included in LoadBalancer list. There must be a name of kubernetes in the list.
    primaryAgentPoolName String
    Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the managed cluster resource.
    allowServicePlacement Boolean
    Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
    loadBalancerName String
    The name of the load balancer.
    nodeSelector LabelSelector
    Nodes that match this selector will be possible members of this load balancer.
    serviceLabelSelector LabelSelector
    Only services that must match this selector can be placed on this load balancer.
    serviceNamespaceSelector LabelSelector
    Services created in namespaces that match the selector can be placed on this load balancer.
    name string
    Name of the public load balancer. There will be an internal load balancer created if needed, and the name will be <name>-internal. The internal lb shares the same configurations as the external one. The internal lbs are not needed to be included in LoadBalancer list. There must be a name of kubernetes in the list.
    primaryAgentPoolName string
    Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    resourceName string
    The name of the managed cluster resource.
    allowServicePlacement boolean
    Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
    loadBalancerName string
    The name of the load balancer.
    nodeSelector LabelSelector
    Nodes that match this selector will be possible members of this load balancer.
    serviceLabelSelector LabelSelector
    Only services that must match this selector can be placed on this load balancer.
    serviceNamespaceSelector LabelSelector
    Services created in namespaces that match the selector can be placed on this load balancer.
    name str
    Name of the public load balancer. There will be an internal load balancer created if needed, and the name will be <name>-internal. The internal lb shares the same configurations as the external one. The internal lbs are not needed to be included in LoadBalancer list. There must be a name of kubernetes in the list.
    primary_agent_pool_name str
    Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
    resource_group_name str
    The name of the resource group. The name is case insensitive.
    resource_name str
    The name of the managed cluster resource.
    allow_service_placement bool
    Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
    load_balancer_name str
    The name of the load balancer.
    node_selector LabelSelectorArgs
    Nodes that match this selector will be possible members of this load balancer.
    service_label_selector LabelSelectorArgs
    Only services that must match this selector can be placed on this load balancer.
    service_namespace_selector LabelSelectorArgs
    Services created in namespaces that match the selector can be placed on this load balancer.
    name String
    Name of the public load balancer. There will be an internal load balancer created if needed, and the name will be <name>-internal. The internal lb shares the same configurations as the external one. The internal lbs are not needed to be included in LoadBalancer list. There must be a name of kubernetes in the list.
    primaryAgentPoolName String
    Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a single load balancer.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the managed cluster resource.
    allowServicePlacement Boolean
    Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set to false manually, both of the external and the internal load balancer will not be selected for services unless they explicitly target it.
    loadBalancerName String
    The name of the load balancer.
    nodeSelector Property Map
    Nodes that match this selector will be possible members of this load balancer.
    serviceLabelSelector Property Map
    Only services that must match this selector can be placed on this load balancer.
    serviceNamespaceSelector Property Map
    Services created in namespaces that match the selector can be placed on this load balancer.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ProvisioningState string
    The current provisioning state.
    SystemData Pulumi.AzureNative.ContainerService.Outputs.SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    Id string
    The provider-assigned unique ID for this managed resource.
    ProvisioningState string
    The current provisioning state.
    SystemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    Type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    provisioningState String
    The current provisioning state.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id string
    The provider-assigned unique ID for this managed resource.
    provisioningState string
    The current provisioning state.
    systemData SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type string
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id str
    The provider-assigned unique ID for this managed resource.
    provisioning_state str
    The current provisioning state.
    system_data SystemDataResponse
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type str
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
    id String
    The provider-assigned unique ID for this managed resource.
    provisioningState String
    The current provisioning state.
    systemData Property Map
    Azure Resource Manager metadata containing createdBy and modifiedBy information.
    type String
    The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

    Supporting Types

    LabelSelector, LabelSelectorArgs

    MatchExpressions List<Pulumi.AzureNative.ContainerService.Inputs.LabelSelectorRequirement>
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    MatchLabels List<string>
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    MatchExpressions []LabelSelectorRequirement
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    MatchLabels []string
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    matchExpressions List<LabelSelectorRequirement>
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    matchLabels List<String>
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    matchExpressions LabelSelectorRequirement[]
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    matchLabels string[]
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    match_expressions Sequence[LabelSelectorRequirement]
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    match_labels Sequence[str]
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    matchExpressions List<Property Map>
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    matchLabels List<String>
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.

    LabelSelectorRequirement, LabelSelectorRequirementArgs

    Key string
    key is the label key that the selector applies to.
    Operator string | Pulumi.AzureNative.ContainerService.Operator
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    Values List<string>
    values is an array of string values, the values array must be non-empty.
    Key string
    key is the label key that the selector applies to.
    Operator string | Operator
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    Values []string
    values is an array of string values, the values array must be non-empty.
    key String
    key is the label key that the selector applies to.
    operator String | Operator
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    values List<String>
    values is an array of string values, the values array must be non-empty.
    key string
    key is the label key that the selector applies to.
    operator string | Operator
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    values string[]
    values is an array of string values, the values array must be non-empty.
    key str
    key is the label key that the selector applies to.
    operator str | Operator
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    values Sequence[str]
    values is an array of string values, the values array must be non-empty.
    key String
    key is the label key that the selector applies to.
    operator String | "In" | "NotIn" | "Exists" | "DoesNotExist"
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    values List<String>
    values is an array of string values, the values array must be non-empty.

    LabelSelectorRequirementResponse, LabelSelectorRequirementResponseArgs

    Key string
    key is the label key that the selector applies to.
    Operator string
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    Values List<string>
    values is an array of string values, the values array must be non-empty.
    Key string
    key is the label key that the selector applies to.
    Operator string
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    Values []string
    values is an array of string values, the values array must be non-empty.
    key String
    key is the label key that the selector applies to.
    operator String
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    values List<String>
    values is an array of string values, the values array must be non-empty.
    key string
    key is the label key that the selector applies to.
    operator string
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    values string[]
    values is an array of string values, the values array must be non-empty.
    key str
    key is the label key that the selector applies to.
    operator str
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    values Sequence[str]
    values is an array of string values, the values array must be non-empty.
    key String
    key is the label key that the selector applies to.
    operator String
    operator represents a key's relationship to a set of values. Valid operators are In and NotIn
    values List<String>
    values is an array of string values, the values array must be non-empty.

    LabelSelectorResponse, LabelSelectorResponseArgs

    MatchExpressions List<Pulumi.AzureNative.ContainerService.Inputs.LabelSelectorRequirementResponse>
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    MatchLabels List<string>
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    MatchExpressions []LabelSelectorRequirementResponse
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    MatchLabels []string
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    matchExpressions List<LabelSelectorRequirementResponse>
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    matchLabels List<String>
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    matchExpressions LabelSelectorRequirementResponse[]
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    matchLabels string[]
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    match_expressions Sequence[LabelSelectorRequirementResponse]
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    match_labels Sequence[str]
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.
    matchExpressions List<Property Map>
    matchExpressions is a list of label selector requirements. The requirements are ANDed.
    matchLabels List<String>
    matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is key, the operator is In, and the values array contains only value. The requirements are ANDed.

    Operator, OperatorArgs

    In
    InThe value of the key should be in the given list.
    NotIn
    NotInThe value of the key should not be in the given list.
    Exists
    ExistsThe value of the key should exist.
    DoesNotExist
    DoesNotExistThe value of the key should not exist.
    OperatorIn
    InThe value of the key should be in the given list.
    OperatorNotIn
    NotInThe value of the key should not be in the given list.
    OperatorExists
    ExistsThe value of the key should exist.
    OperatorDoesNotExist
    DoesNotExistThe value of the key should not exist.
    In
    InThe value of the key should be in the given list.
    NotIn
    NotInThe value of the key should not be in the given list.
    Exists
    ExistsThe value of the key should exist.
    DoesNotExist
    DoesNotExistThe value of the key should not exist.
    In
    InThe value of the key should be in the given list.
    NotIn
    NotInThe value of the key should not be in the given list.
    Exists
    ExistsThe value of the key should exist.
    DoesNotExist
    DoesNotExistThe value of the key should not exist.
    IN_
    InThe value of the key should be in the given list.
    NOT_IN
    NotInThe value of the key should not be in the given list.
    EXISTS
    ExistsThe value of the key should exist.
    DOES_NOT_EXIST
    DoesNotExistThe value of the key should not exist.
    "In"
    InThe value of the key should be in the given list.
    "NotIn"
    NotInThe value of the key should not be in the given list.
    "Exists"
    ExistsThe value of the key should exist.
    "DoesNotExist"
    DoesNotExistThe value of the key should not exist.

    SystemDataResponse, SystemDataResponseArgs

    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    CreatedAt string
    The timestamp of resource creation (UTC).
    CreatedBy string
    The identity that created the resource.
    CreatedByType string
    The type of identity that created the resource.
    LastModifiedAt string
    The timestamp of resource last modification (UTC)
    LastModifiedBy string
    The identity that last modified the resource.
    LastModifiedByType string
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.
    createdAt string
    The timestamp of resource creation (UTC).
    createdBy string
    The identity that created the resource.
    createdByType string
    The type of identity that created the resource.
    lastModifiedAt string
    The timestamp of resource last modification (UTC)
    lastModifiedBy string
    The identity that last modified the resource.
    lastModifiedByType string
    The type of identity that last modified the resource.
    created_at str
    The timestamp of resource creation (UTC).
    created_by str
    The identity that created the resource.
    created_by_type str
    The type of identity that created the resource.
    last_modified_at str
    The timestamp of resource last modification (UTC)
    last_modified_by str
    The identity that last modified the resource.
    last_modified_by_type str
    The type of identity that last modified the resource.
    createdAt String
    The timestamp of resource creation (UTC).
    createdBy String
    The identity that created the resource.
    createdByType String
    The type of identity that created the resource.
    lastModifiedAt String
    The timestamp of resource last modification (UTC)
    lastModifiedBy String
    The identity that last modified the resource.
    lastModifiedByType String
    The type of identity that last modified the resource.

    Import

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

    $ pulumi import azure-native:containerservice:LoadBalancer kubernetes /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName} 
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Native pulumi/pulumi-azure-native
    License
    Apache-2.0
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.73.0 published on Wednesday, Nov 20, 2024 by Pulumi