azure-native.containerservice.LoadBalancer
Explore with Pulumi AI
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. - Primary
Agent stringPool Name - 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 stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the managed cluster resource.
- Allow
Service boolPlacement - 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 stringName - The name of the load balancer.
- Node
Selector Pulumi.Azure Native. Container Service. Inputs. Label Selector - Nodes that match this selector will be possible members of this load balancer.
- Service
Label Pulumi.Selector Azure Native. Container Service. Inputs. Label Selector - Only services that must match this selector can be placed on this load balancer.
- Service
Namespace Pulumi.Selector Azure Native. Container Service. Inputs. Label Selector - 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. - Primary
Agent stringPool Name - 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 stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the managed cluster resource.
- Allow
Service boolPlacement - 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 stringName - The name of the load balancer.
- Node
Selector LabelSelector Args - Nodes that match this selector will be possible members of this load balancer.
- Service
Label LabelSelector Selector Args - Only services that must match this selector can be placed on this load balancer.
- Service
Namespace LabelSelector Selector Args - 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. - primary
Agent StringPool Name - 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 StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the managed cluster resource.
- allow
Service BooleanPlacement - 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 StringName - The name of the load balancer.
- node
Selector LabelSelector - Nodes that match this selector will be possible members of this load balancer.
- service
Label LabelSelector Selector - Only services that must match this selector can be placed on this load balancer.
- service
Namespace LabelSelector Selector - 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. - primary
Agent stringPool Name - 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 stringName - The name of the resource group. The name is case insensitive.
- resource
Name string - The name of the managed cluster resource.
- allow
Service booleanPlacement - 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 stringName - The name of the load balancer.
- node
Selector LabelSelector - Nodes that match this selector will be possible members of this load balancer.
- service
Label LabelSelector Selector - Only services that must match this selector can be placed on this load balancer.
- service
Namespace LabelSelector Selector - 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_ strpool_ name - 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_ strname - The name of the resource group. The name is case insensitive.
- resource_
name str - The name of the managed cluster resource.
- allow_
service_ boolplacement - 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_ strname - The name of the load balancer.
- node_
selector LabelSelector Args - Nodes that match this selector will be possible members of this load balancer.
- service_
label_ Labelselector Selector Args - Only services that must match this selector can be placed on this load balancer.
- service_
namespace_ Labelselector Selector Args - 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. - primary
Agent StringPool Name - 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 StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the managed cluster resource.
- allow
Service BooleanPlacement - 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 StringName - The name of the load balancer.
- node
Selector Property Map - Nodes that match this selector will be possible members of this load balancer.
- service
Label Property MapSelector - Only services that must match this selector can be placed on this load balancer.
- service
Namespace Property MapSelector - 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.
- Provisioning
State string - The current provisioning state.
- System
Data Pulumi.Azure Native. Container Service. Outputs. System Data Response - 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.
- Provisioning
State string - The current provisioning state.
- System
Data SystemData Response - 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.
- provisioning
State String - The current provisioning state.
- system
Data SystemData Response - 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.
- provisioning
State string - The current provisioning state.
- system
Data SystemData Response - 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 SystemData Response - 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.
- provisioning
State String - The current provisioning state.
- system
Data 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
- Match
Expressions List<Pulumi.Azure Native. Container Service. Inputs. Label Selector Requirement> - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- Match
Labels 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- Match
Expressions []LabelSelector Requirement - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- Match
Labels []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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- match
Expressions List<LabelSelector Requirement> - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- match
Labels 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- match
Expressions LabelSelector Requirement[] - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- match
Labels 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- match_
expressions Sequence[LabelSelector Requirement] - 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- match
Expressions List<Property Map> - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- match
Labels 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
LabelSelectorRequirement, LabelSelectorRequirementArgs
- Key string
- key is the label key that the selector applies to.
- Operator
string | Pulumi.
Azure Native. Container Service. 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 | "In" | "Not
In" | "Exists" | "Does Not Exist" - 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
LabelSelectorResponse, LabelSelectorResponseArgs
- Match
Expressions List<Pulumi.Azure Native. Container Service. Inputs. Label Selector Requirement Response> - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- Match
Labels 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- Match
Expressions []LabelSelector Requirement Response - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- Match
Labels []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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- match
Expressions List<LabelSelector Requirement Response> - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- match
Labels 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- match
Expressions LabelSelector Requirement Response[] - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- match
Labels 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- match_
expressions Sequence[LabelSelector Requirement Response] - 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
- match
Expressions List<Property Map> - matchExpressions is a list of label selector requirements. The requirements are ANDed.
- match
Labels 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 isIn
, and the values array contains onlyvalue
. The requirements are ANDed.
Operator, OperatorArgs
- 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.
- Operator
In - InThe value of the key should be in the given list.
- Operator
Not In - NotInThe value of the key should not be in the given list.
- Operator
Exists - ExistsThe value of the key should exist.
- Operator
Does Not Exist - 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.
- 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.
- 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.
- "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.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - 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_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - 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