1. Packages
  2. Azure Native
  3. API Docs
  4. containerservice
  5. Namespace
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

azure-native.containerservice.Namespace

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi

    Namespace managed by ARM.

    Uses Azure REST API version 2025-02-02-preview.

    Example Usage

    Create/Update Namespace

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using AzureNative = Pulumi.AzureNative;
    
    return await Deployment.RunAsync(() => 
    {
        var @namespace = new AzureNative.ContainerService.Namespace("namespace", new()
        {
            NamespaceName = "namespace1",
            Properties = new AzureNative.ContainerService.Inputs.NamespacePropertiesArgs
            {
                AdoptionPolicy = AzureNative.ContainerService.AdoptionPolicy.IfIdentical,
                Annotations = 
                {
                    { "annatationKey", "annatationValue" },
                },
                DefaultNetworkPolicy = new AzureNative.ContainerService.Inputs.NetworkPoliciesArgs
                {
                    Egress = AzureNative.ContainerService.PolicyRule.AllowAll,
                    Ingress = AzureNative.ContainerService.PolicyRule.AllowSameNamespace,
                },
                DefaultResourceQuota = new AzureNative.ContainerService.Inputs.ResourceQuotaArgs
                {
                    CpuLimit = "3m",
                    CpuRequest = "3m",
                    MemoryLimit = "5Gi",
                    MemoryRequest = "5Gi",
                },
                DeletePolicy = AzureNative.ContainerService.DeletePolicy.Keep,
                Labels = 
                {
                    { "kubernetes.io/metadata.name", "true" },
                },
            },
            ResourceGroupName = "rg1",
            ResourceName = "clustername1",
            Tags = 
            {
                { "tagKey1", "tagValue1" },
            },
        });
    
    });
    
    package main
    
    import (
    	containerservice "github.com/pulumi/pulumi-azure-native-sdk/containerservice/v3"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := containerservice.NewNamespace(ctx, "namespace", &containerservice.NamespaceArgs{
    			NamespaceName: pulumi.String("namespace1"),
    			Properties: &containerservice.NamespacePropertiesArgs{
    				AdoptionPolicy: pulumi.String(containerservice.AdoptionPolicyIfIdentical),
    				Annotations: pulumi.StringMap{
    					"annatationKey": pulumi.String("annatationValue"),
    				},
    				DefaultNetworkPolicy: &containerservice.NetworkPoliciesArgs{
    					Egress:  pulumi.String(containerservice.PolicyRuleAllowAll),
    					Ingress: pulumi.String(containerservice.PolicyRuleAllowSameNamespace),
    				},
    				DefaultResourceQuota: &containerservice.ResourceQuotaArgs{
    					CpuLimit:      pulumi.String("3m"),
    					CpuRequest:    pulumi.String("3m"),
    					MemoryLimit:   pulumi.String("5Gi"),
    					MemoryRequest: pulumi.String("5Gi"),
    				},
    				DeletePolicy: pulumi.String(containerservice.DeletePolicyKeep),
    				Labels: pulumi.StringMap{
    					"kubernetes.io/metadata.name": pulumi.String("true"),
    				},
    			},
    			ResourceGroupName: pulumi.String("rg1"),
    			ResourceName:      pulumi.String("clustername1"),
    			Tags: pulumi.StringMap{
    				"tagKey1": pulumi.String("tagValue1"),
    			},
    		})
    		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.Namespace;
    import com.pulumi.azurenative.containerservice.NamespaceArgs;
    import com.pulumi.azurenative.containerservice.inputs.NamespacePropertiesArgs;
    import com.pulumi.azurenative.containerservice.inputs.NetworkPoliciesArgs;
    import com.pulumi.azurenative.containerservice.inputs.ResourceQuotaArgs;
    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 namespace = new Namespace("namespace", NamespaceArgs.builder()
                .namespaceName("namespace1")
                .properties(NamespacePropertiesArgs.builder()
                    .adoptionPolicy("IfIdentical")
                    .annotations(Map.of("annatationKey", "annatationValue"))
                    .defaultNetworkPolicy(NetworkPoliciesArgs.builder()
                        .egress("AllowAll")
                        .ingress("AllowSameNamespace")
                        .build())
                    .defaultResourceQuota(ResourceQuotaArgs.builder()
                        .cpuLimit("3m")
                        .cpuRequest("3m")
                        .memoryLimit("5Gi")
                        .memoryRequest("5Gi")
                        .build())
                    .deletePolicy("Keep")
                    .labels(Map.of("kubernetes.io/metadata.name", "true"))
                    .build())
                .resourceGroupName("rg1")
                .resourceName("clustername1")
                .tags(Map.of("tagKey1", "tagValue1"))
                .build());
    
        }
    }
    
    import * as pulumi from "@pulumi/pulumi";
    import * as azure_native from "@pulumi/azure-native";
    
    const namespace = new azure_native.containerservice.Namespace("namespace", {
        namespaceName: "namespace1",
        properties: {
            adoptionPolicy: azure_native.containerservice.AdoptionPolicy.IfIdentical,
            annotations: {
                annatationKey: "annatationValue",
            },
            defaultNetworkPolicy: {
                egress: azure_native.containerservice.PolicyRule.AllowAll,
                ingress: azure_native.containerservice.PolicyRule.AllowSameNamespace,
            },
            defaultResourceQuota: {
                cpuLimit: "3m",
                cpuRequest: "3m",
                memoryLimit: "5Gi",
                memoryRequest: "5Gi",
            },
            deletePolicy: azure_native.containerservice.DeletePolicy.Keep,
            labels: {
                "kubernetes.io/metadata.name": "true",
            },
        },
        resourceGroupName: "rg1",
        resourceName: "clustername1",
        tags: {
            tagKey1: "tagValue1",
        },
    });
    
    import pulumi
    import pulumi_azure_native as azure_native
    
    namespace = azure_native.containerservice.Namespace("namespace",
        namespace_name="namespace1",
        properties={
            "adoption_policy": azure_native.containerservice.AdoptionPolicy.IF_IDENTICAL,
            "annotations": {
                "annatationKey": "annatationValue",
            },
            "default_network_policy": {
                "egress": azure_native.containerservice.PolicyRule.ALLOW_ALL,
                "ingress": azure_native.containerservice.PolicyRule.ALLOW_SAME_NAMESPACE,
            },
            "default_resource_quota": {
                "cpu_limit": "3m",
                "cpu_request": "3m",
                "memory_limit": "5Gi",
                "memory_request": "5Gi",
            },
            "delete_policy": azure_native.containerservice.DeletePolicy.KEEP,
            "labels": {
                "kubernetes.io/metadata.name": "true",
            },
        },
        resource_group_name="rg1",
        resource_name_="clustername1",
        tags={
            "tagKey1": "tagValue1",
        })
    
    resources:
      namespace:
        type: azure-native:containerservice:Namespace
        properties:
          namespaceName: namespace1
          properties:
            adoptionPolicy: IfIdentical
            annotations:
              annatationKey: annatationValue
            defaultNetworkPolicy:
              egress: AllowAll
              ingress: AllowSameNamespace
            defaultResourceQuota:
              cpuLimit: 3m
              cpuRequest: 3m
              memoryLimit: 5Gi
              memoryRequest: 5Gi
            deletePolicy: Keep
            labels:
              kubernetes.io/metadata.name: 'true'
          resourceGroupName: rg1
          resourceName: clustername1
          tags:
            tagKey1: tagValue1
    

    Create Namespace Resource

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

    Constructor syntax

    new Namespace(name: string, args: NamespaceArgs, opts?: CustomResourceOptions);
    @overload
    def Namespace(resource_name: str,
                  args: NamespaceArgs,
                  opts: Optional[ResourceOptions] = None)
    
    @overload
    def Namespace(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  resource_group_name: Optional[str] = None,
                  resource_name_: Optional[str] = None,
                  location: Optional[str] = None,
                  namespace_name: Optional[str] = None,
                  properties: Optional[NamespacePropertiesArgs] = None,
                  tags: Optional[Mapping[str, str]] = None)
    func NewNamespace(ctx *Context, name string, args NamespaceArgs, opts ...ResourceOption) (*Namespace, error)
    public Namespace(string name, NamespaceArgs args, CustomResourceOptions? opts = null)
    public Namespace(String name, NamespaceArgs args)
    public Namespace(String name, NamespaceArgs args, CustomResourceOptions options)
    
    type: azure-native:containerservice:Namespace
    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 NamespaceArgs
    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 NamespaceArgs
    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 NamespaceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NamespaceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NamespaceArgs
    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 namespaceResource = new AzureNative.ContainerService.Namespace("namespaceResource", new()
    {
        ResourceGroupName = "string",
        ResourceName = "string",
        Location = "string",
        NamespaceName = "string",
        Properties = new AzureNative.ContainerService.Inputs.NamespacePropertiesArgs
        {
            AdoptionPolicy = "string",
            Annotations = 
            {
                { "string", "string" },
            },
            DefaultNetworkPolicy = new AzureNative.ContainerService.Inputs.NetworkPoliciesArgs
            {
                Egress = "string",
                Ingress = "string",
            },
            DefaultResourceQuota = new AzureNative.ContainerService.Inputs.ResourceQuotaArgs
            {
                CpuLimit = "string",
                CpuRequest = "string",
                MemoryLimit = "string",
                MemoryRequest = "string",
            },
            DeletePolicy = "string",
            Labels = 
            {
                { "string", "string" },
            },
        },
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := containerservice.NewNamespace(ctx, "namespaceResource", &containerservice.NamespaceArgs{
    	ResourceGroupName: pulumi.String("string"),
    	ResourceName:      pulumi.String("string"),
    	Location:          pulumi.String("string"),
    	NamespaceName:     pulumi.String("string"),
    	Properties: &containerservice.NamespacePropertiesArgs{
    		AdoptionPolicy: pulumi.String("string"),
    		Annotations: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    		DefaultNetworkPolicy: &containerservice.NetworkPoliciesArgs{
    			Egress:  pulumi.String("string"),
    			Ingress: pulumi.String("string"),
    		},
    		DefaultResourceQuota: &containerservice.ResourceQuotaArgs{
    			CpuLimit:      pulumi.String("string"),
    			CpuRequest:    pulumi.String("string"),
    			MemoryLimit:   pulumi.String("string"),
    			MemoryRequest: pulumi.String("string"),
    		},
    		DeletePolicy: pulumi.String("string"),
    		Labels: pulumi.StringMap{
    			"string": pulumi.String("string"),
    		},
    	},
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var namespaceResource = new com.pulumi.azurenative.containerservice.Namespace("namespaceResource", com.pulumi.azurenative.containerservice.NamespaceArgs.builder()
        .resourceGroupName("string")
        .resourceName("string")
        .location("string")
        .namespaceName("string")
        .properties(NamespacePropertiesArgs.builder()
            .adoptionPolicy("string")
            .annotations(Map.of("string", "string"))
            .defaultNetworkPolicy(NetworkPoliciesArgs.builder()
                .egress("string")
                .ingress("string")
                .build())
            .defaultResourceQuota(ResourceQuotaArgs.builder()
                .cpuLimit("string")
                .cpuRequest("string")
                .memoryLimit("string")
                .memoryRequest("string")
                .build())
            .deletePolicy("string")
            .labels(Map.of("string", "string"))
            .build())
        .tags(Map.of("string", "string"))
        .build());
    
    namespace_resource = azure_native.containerservice.Namespace("namespaceResource",
        resource_group_name="string",
        resource_name_="string",
        location="string",
        namespace_name="string",
        properties={
            "adoption_policy": "string",
            "annotations": {
                "string": "string",
            },
            "default_network_policy": {
                "egress": "string",
                "ingress": "string",
            },
            "default_resource_quota": {
                "cpu_limit": "string",
                "cpu_request": "string",
                "memory_limit": "string",
                "memory_request": "string",
            },
            "delete_policy": "string",
            "labels": {
                "string": "string",
            },
        },
        tags={
            "string": "string",
        })
    
    const namespaceResource = new azure_native.containerservice.Namespace("namespaceResource", {
        resourceGroupName: "string",
        resourceName: "string",
        location: "string",
        namespaceName: "string",
        properties: {
            adoptionPolicy: "string",
            annotations: {
                string: "string",
            },
            defaultNetworkPolicy: {
                egress: "string",
                ingress: "string",
            },
            defaultResourceQuota: {
                cpuLimit: "string",
                cpuRequest: "string",
                memoryLimit: "string",
                memoryRequest: "string",
            },
            deletePolicy: "string",
            labels: {
                string: "string",
            },
        },
        tags: {
            string: "string",
        },
    });
    
    type: azure-native:containerservice:Namespace
    properties:
        location: string
        namespaceName: string
        properties:
            adoptionPolicy: string
            annotations:
                string: string
            defaultNetworkPolicy:
                egress: string
                ingress: string
            defaultResourceQuota:
                cpuLimit: string
                cpuRequest: string
                memoryLimit: string
                memoryRequest: string
            deletePolicy: string
            labels:
                string: string
        resourceGroupName: string
        resourceName: string
        tags:
            string: string
    

    Namespace 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 Namespace resource accepts the following input properties:

    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the managed cluster resource.
    Location string
    The location of the namespace.
    NamespaceName string
    The name of the namespace.
    Properties Pulumi.AzureNative.ContainerService.Inputs.NamespaceProperties
    Properties of a namespace.
    Tags Dictionary<string, string>
    The tags to be persisted on the managed cluster namespace.
    ResourceGroupName string
    The name of the resource group. The name is case insensitive.
    ResourceName string
    The name of the managed cluster resource.
    Location string
    The location of the namespace.
    NamespaceName string
    The name of the namespace.
    Properties NamespacePropertiesArgs
    Properties of a namespace.
    Tags map[string]string
    The tags to be persisted on the managed cluster namespace.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the managed cluster resource.
    location String
    The location of the namespace.
    namespaceName String
    The name of the namespace.
    properties NamespaceProperties
    Properties of a namespace.
    tags Map<String,String>
    The tags to be persisted on the managed cluster namespace.
    resourceGroupName string
    The name of the resource group. The name is case insensitive.
    resourceName string
    The name of the managed cluster resource.
    location string
    The location of the namespace.
    namespaceName string
    The name of the namespace.
    properties NamespaceProperties
    Properties of a namespace.
    tags {[key: string]: string}
    The tags to be persisted on the managed cluster namespace.
    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.
    location str
    The location of the namespace.
    namespace_name str
    The name of the namespace.
    properties NamespacePropertiesArgs
    Properties of a namespace.
    tags Mapping[str, str]
    The tags to be persisted on the managed cluster namespace.
    resourceGroupName String
    The name of the resource group. The name is case insensitive.
    resourceName String
    The name of the managed cluster resource.
    location String
    The location of the namespace.
    namespaceName String
    The name of the namespace.
    properties Property Map
    Properties of a namespace.
    tags Map<String>
    The tags to be persisted on the managed cluster namespace.

    Outputs

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

    AzureApiVersion string
    The Azure API version of the resource.
    ETag string
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    SystemData Pulumi.AzureNative.ContainerService.Outputs.SystemDataResponse
    The system metadata relating to this resource.
    Type string
    Resource type
    AzureApiVersion string
    The Azure API version of the resource.
    ETag string
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    SystemData SystemDataResponse
    The system metadata relating to this resource.
    Type string
    Resource type
    azureApiVersion String
    The Azure API version of the resource.
    eTag String
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    systemData SystemDataResponse
    The system metadata relating to this resource.
    type String
    Resource type
    azureApiVersion string
    The Azure API version of the resource.
    eTag string
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    systemData SystemDataResponse
    The system metadata relating to this resource.
    type string
    Resource type
    azure_api_version str
    The Azure API version of the resource.
    e_tag str
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    system_data SystemDataResponse
    The system metadata relating to this resource.
    type str
    Resource type
    azureApiVersion String
    The Azure API version of the resource.
    eTag String
    Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable optimistic concurrency per the normal etag convention.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the resource that is unique within a resource group. This name can be used to access the resource.
    systemData Property Map
    The system metadata relating to this resource.
    type String
    Resource type

    Supporting Types

    AdoptionPolicy, AdoptionPolicyArgs

    Never
    NeverIf the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
    IfIdentical
    IfIdenticalTake over the existing namespace to be managed by ARM, if there is no difference.
    Always
    AlwaysAlways take over the existing namespace to be managed by ARM, some fields might be overwritten.
    AdoptionPolicyNever
    NeverIf the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
    AdoptionPolicyIfIdentical
    IfIdenticalTake over the existing namespace to be managed by ARM, if there is no difference.
    AdoptionPolicyAlways
    AlwaysAlways take over the existing namespace to be managed by ARM, some fields might be overwritten.
    Never
    NeverIf the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
    IfIdentical
    IfIdenticalTake over the existing namespace to be managed by ARM, if there is no difference.
    Always
    AlwaysAlways take over the existing namespace to be managed by ARM, some fields might be overwritten.
    Never
    NeverIf the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
    IfIdentical
    IfIdenticalTake over the existing namespace to be managed by ARM, if there is no difference.
    Always
    AlwaysAlways take over the existing namespace to be managed by ARM, some fields might be overwritten.
    NEVER
    NeverIf the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
    IF_IDENTICAL
    IfIdenticalTake over the existing namespace to be managed by ARM, if there is no difference.
    ALWAYS
    AlwaysAlways take over the existing namespace to be managed by ARM, some fields might be overwritten.
    "Never"
    NeverIf the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
    "IfIdentical"
    IfIdenticalTake over the existing namespace to be managed by ARM, if there is no difference.
    "Always"
    AlwaysAlways take over the existing namespace to be managed by ARM, some fields might be overwritten.

    DeletePolicy, DeletePolicyArgs

    Keep
    KeepOnly delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.
    Delete
    DeleteDelete both the ARM resource and the Kubernetes namespace together.
    DeletePolicyKeep
    KeepOnly delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.
    DeletePolicyDelete
    DeleteDelete both the ARM resource and the Kubernetes namespace together.
    Keep
    KeepOnly delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.
    Delete
    DeleteDelete both the ARM resource and the Kubernetes namespace together.
    Keep
    KeepOnly delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.
    Delete
    DeleteDelete both the ARM resource and the Kubernetes namespace together.
    KEEP
    KeepOnly delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.
    DELETE
    DeleteDelete both the ARM resource and the Kubernetes namespace together.
    "Keep"
    KeepOnly delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.
    "Delete"
    DeleteDelete both the ARM resource and the Kubernetes namespace together.

    NamespaceProperties, NamespacePropertiesArgs

    AdoptionPolicy string | Pulumi.AzureNative.ContainerService.AdoptionPolicy
    Action if Kubernetes namespace with same name already exists.
    Annotations Dictionary<string, string>
    The annotations of managed namespace.
    DefaultNetworkPolicy Pulumi.AzureNative.ContainerService.Inputs.NetworkPolicies
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    DefaultResourceQuota Pulumi.AzureNative.ContainerService.Inputs.ResourceQuota
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    DeletePolicy string | Pulumi.AzureNative.ContainerService.DeletePolicy
    Delete options of a namespace.
    Labels Dictionary<string, string>
    The labels of managed namespace.
    AdoptionPolicy string | AdoptionPolicy
    Action if Kubernetes namespace with same name already exists.
    Annotations map[string]string
    The annotations of managed namespace.
    DefaultNetworkPolicy NetworkPolicies
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    DefaultResourceQuota ResourceQuota
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    DeletePolicy string | DeletePolicy
    Delete options of a namespace.
    Labels map[string]string
    The labels of managed namespace.
    adoptionPolicy String | AdoptionPolicy
    Action if Kubernetes namespace with same name already exists.
    annotations Map<String,String>
    The annotations of managed namespace.
    defaultNetworkPolicy NetworkPolicies
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    defaultResourceQuota ResourceQuota
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    deletePolicy String | DeletePolicy
    Delete options of a namespace.
    labels Map<String,String>
    The labels of managed namespace.
    adoptionPolicy string | AdoptionPolicy
    Action if Kubernetes namespace with same name already exists.
    annotations {[key: string]: string}
    The annotations of managed namespace.
    defaultNetworkPolicy NetworkPolicies
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    defaultResourceQuota ResourceQuota
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    deletePolicy string | DeletePolicy
    Delete options of a namespace.
    labels {[key: string]: string}
    The labels of managed namespace.
    adoption_policy str | AdoptionPolicy
    Action if Kubernetes namespace with same name already exists.
    annotations Mapping[str, str]
    The annotations of managed namespace.
    default_network_policy NetworkPolicies
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    default_resource_quota ResourceQuota
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    delete_policy str | DeletePolicy
    Delete options of a namespace.
    labels Mapping[str, str]
    The labels of managed namespace.
    adoptionPolicy String | "Never" | "IfIdentical" | "Always"
    Action if Kubernetes namespace with same name already exists.
    annotations Map<String>
    The annotations of managed namespace.
    defaultNetworkPolicy Property Map
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    defaultResourceQuota Property Map
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    deletePolicy String | "Keep" | "Delete"
    Delete options of a namespace.
    labels Map<String>
    The labels of managed namespace.

    NamespacePropertiesResponse, NamespacePropertiesResponseArgs

    ProvisioningState string
    The current provisioning state of the namespace.
    AdoptionPolicy string
    Action if Kubernetes namespace with same name already exists.
    Annotations Dictionary<string, string>
    The annotations of managed namespace.
    DefaultNetworkPolicy Pulumi.AzureNative.ContainerService.Inputs.NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    DefaultResourceQuota Pulumi.AzureNative.ContainerService.Inputs.ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    DeletePolicy string
    Delete options of a namespace.
    Labels Dictionary<string, string>
    The labels of managed namespace.
    ProvisioningState string
    The current provisioning state of the namespace.
    AdoptionPolicy string
    Action if Kubernetes namespace with same name already exists.
    Annotations map[string]string
    The annotations of managed namespace.
    DefaultNetworkPolicy NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    DefaultResourceQuota ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    DeletePolicy string
    Delete options of a namespace.
    Labels map[string]string
    The labels of managed namespace.
    provisioningState String
    The current provisioning state of the namespace.
    adoptionPolicy String
    Action if Kubernetes namespace with same name already exists.
    annotations Map<String,String>
    The annotations of managed namespace.
    defaultNetworkPolicy NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    defaultResourceQuota ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    deletePolicy String
    Delete options of a namespace.
    labels Map<String,String>
    The labels of managed namespace.
    provisioningState string
    The current provisioning state of the namespace.
    adoptionPolicy string
    Action if Kubernetes namespace with same name already exists.
    annotations {[key: string]: string}
    The annotations of managed namespace.
    defaultNetworkPolicy NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    defaultResourceQuota ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    deletePolicy string
    Delete options of a namespace.
    labels {[key: string]: string}
    The labels of managed namespace.
    provisioning_state str
    The current provisioning state of the namespace.
    adoption_policy str
    Action if Kubernetes namespace with same name already exists.
    annotations Mapping[str, str]
    The annotations of managed namespace.
    default_network_policy NetworkPoliciesResponse
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    default_resource_quota ResourceQuotaResponse
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    delete_policy str
    Delete options of a namespace.
    labels Mapping[str, str]
    The labels of managed namespace.
    provisioningState String
    The current provisioning state of the namespace.
    adoptionPolicy String
    Action if Kubernetes namespace with same name already exists.
    annotations Map<String>
    The annotations of managed namespace.
    defaultNetworkPolicy Property Map
    The default network policy enforced upon the namespace. Customers can have other Kubernetes network policy objects under the namespace. All the network policies will be enforced.
    defaultResourceQuota Property Map
    The default resource quota enforced upon the namespace. Customers can have other Kubernetes resource quota objects under the namespace. All the resource quotas will be enforced.
    deletePolicy String
    Delete options of a namespace.
    labels Map<String>
    The labels of managed namespace.

    NetworkPolicies, NetworkPoliciesArgs

    Egress string | Pulumi.AzureNative.ContainerService.PolicyRule
    Egress policy for the network.
    Ingress string | Pulumi.AzureNative.ContainerService.PolicyRule
    Ingress policy for the network.
    Egress string | PolicyRule
    Egress policy for the network.
    Ingress string | PolicyRule
    Ingress policy for the network.
    egress String | PolicyRule
    Egress policy for the network.
    ingress String | PolicyRule
    Ingress policy for the network.
    egress string | PolicyRule
    Egress policy for the network.
    ingress string | PolicyRule
    Ingress policy for the network.
    egress str | PolicyRule
    Egress policy for the network.
    ingress str | PolicyRule
    Ingress policy for the network.
    egress String | "DenyAll" | "AllowAll" | "AllowSameNamespace"
    Egress policy for the network.
    ingress String | "DenyAll" | "AllowAll" | "AllowSameNamespace"
    Ingress policy for the network.

    NetworkPoliciesResponse, NetworkPoliciesResponseArgs

    Egress string
    Egress policy for the network.
    Ingress string
    Ingress policy for the network.
    Egress string
    Egress policy for the network.
    Ingress string
    Ingress policy for the network.
    egress String
    Egress policy for the network.
    ingress String
    Ingress policy for the network.
    egress string
    Egress policy for the network.
    ingress string
    Ingress policy for the network.
    egress str
    Egress policy for the network.
    ingress str
    Ingress policy for the network.
    egress String
    Egress policy for the network.
    ingress String
    Ingress policy for the network.

    PolicyRule, PolicyRuleArgs

    DenyAll
    DenyAllDeny all network traffic.
    AllowAll
    AllowAllAllow all network traffic.
    AllowSameNamespace
    AllowSameNamespaceAllow traffic within the same namespace.
    PolicyRuleDenyAll
    DenyAllDeny all network traffic.
    PolicyRuleAllowAll
    AllowAllAllow all network traffic.
    PolicyRuleAllowSameNamespace
    AllowSameNamespaceAllow traffic within the same namespace.
    DenyAll
    DenyAllDeny all network traffic.
    AllowAll
    AllowAllAllow all network traffic.
    AllowSameNamespace
    AllowSameNamespaceAllow traffic within the same namespace.
    DenyAll
    DenyAllDeny all network traffic.
    AllowAll
    AllowAllAllow all network traffic.
    AllowSameNamespace
    AllowSameNamespaceAllow traffic within the same namespace.
    DENY_ALL
    DenyAllDeny all network traffic.
    ALLOW_ALL
    AllowAllAllow all network traffic.
    ALLOW_SAME_NAMESPACE
    AllowSameNamespaceAllow traffic within the same namespace.
    "DenyAll"
    DenyAllDeny all network traffic.
    "AllowAll"
    AllowAllAllow all network traffic.
    "AllowSameNamespace"
    AllowSameNamespaceAllow traffic within the same namespace.

    ResourceQuota, ResourceQuotaArgs

    CpuLimit string
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    CpuRequest string
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    MemoryLimit string
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    MemoryRequest string
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    CpuLimit string
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    CpuRequest string
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    MemoryLimit string
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    MemoryRequest string
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpuLimit String
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpuRequest String
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memoryLimit String
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memoryRequest String
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpuLimit string
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpuRequest string
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memoryLimit string
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memoryRequest string
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpu_limit str
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpu_request str
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memory_limit str
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memory_request str
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpuLimit String
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpuRequest String
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memoryLimit String
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memoryRequest String
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.

    ResourceQuotaResponse, ResourceQuotaResponseArgs

    CpuLimit string
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    CpuRequest string
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    MemoryLimit string
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    MemoryRequest string
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    CpuLimit string
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    CpuRequest string
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    MemoryLimit string
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    MemoryRequest string
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpuLimit String
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpuRequest String
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memoryLimit String
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memoryRequest String
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpuLimit string
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpuRequest string
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memoryLimit string
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memoryRequest string
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpu_limit str
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpu_request str
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memory_limit str
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memory_request str
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    cpuLimit String
    CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    cpuRequest String
    CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
    memoryLimit String
    Memory limit of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.
    memoryRequest String
    Memory request of the namespace in the power-of-two equivalents form: Ei, Pi, Ti, Gi, Mi, Ki. See Memory resource units for more details.

    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:Namespace namespace1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/namespaces/{namespaceName} 
    

    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 v2 docs if using the v2 version of this package.
    Azure Native v3.4.0 published on Wednesday, May 7, 2025 by Pulumi