azure-native.containerservice.Namespace
Explore with Pulumi AI
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:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the managed cluster resource.
- Location string
- The location of the namespace.
- Namespace
Name string - The name of the namespace.
- Properties
Pulumi.
Azure Native. Container Service. Inputs. Namespace Properties - Properties of a namespace.
- Dictionary<string, string>
- The tags to be persisted on the managed cluster namespace.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Resource
Name string - The name of the managed cluster resource.
- Location string
- The location of the namespace.
- Namespace
Name string - The name of the namespace.
- Properties
Namespace
Properties Args - Properties of a namespace.
- map[string]string
- The tags to be persisted on the managed cluster namespace.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the managed cluster resource.
- location String
- The location of the namespace.
- namespace
Name String - The name of the namespace.
- properties
Namespace
Properties - Properties of a namespace.
- Map<String,String>
- The tags to be persisted on the managed cluster namespace.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- resource
Name string - The name of the managed cluster resource.
- location string
- The location of the namespace.
- namespace
Name string - The name of the namespace.
- properties
Namespace
Properties - Properties of a namespace.
- {[key: string]: string}
- The tags to be persisted on the managed cluster namespace.
- resource_
group_ strname - 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
Namespace
Properties Args - Properties of a namespace.
- Mapping[str, str]
- The tags to be persisted on the managed cluster namespace.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- resource
Name String - The name of the managed cluster resource.
- location String
- The location of the namespace.
- namespace
Name String - The name of the namespace.
- properties Property Map
- Properties of a namespace.
- 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:
- Azure
Api stringVersion - 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.
- System
Data Pulumi.Azure Native. Container Service. Outputs. System Data Response - The system metadata relating to this resource.
- Type string
- Resource type
- Azure
Api stringVersion - 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.
- System
Data SystemData Response - The system metadata relating to this resource.
- Type string
- Resource type
- azure
Api StringVersion - The Azure API version of the resource.
- e
Tag 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.
- system
Data SystemData Response - The system metadata relating to this resource.
- type String
- Resource type
- azure
Api stringVersion - The Azure API version of the resource.
- e
Tag 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.
- system
Data SystemData Response - The system metadata relating to this resource.
- type string
- Resource type
- azure_
api_ strversion - 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 SystemData Response - The system metadata relating to this resource.
- type str
- Resource type
- azure
Api StringVersion - The Azure API version of the resource.
- e
Tag 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.
- system
Data 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.
- 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.
- Adoption
Policy Never - NeverIf the namespace already exists in Kubernetes, attempts to create that same namespace in ARM will fail.
- Adoption
Policy If Identical - IfIdenticalTake over the existing namespace to be managed by ARM, if there is no difference.
- Adoption
Policy 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.
- 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.
- 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.
- "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.
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.
- Delete
Policy Keep - KeepOnly delete the ARM resource, keep the Kubernetes namespace. Also delete the ManagedByARM label.
- Delete
Policy 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.
- "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
- Adoption
Policy string | Pulumi.Azure Native. Container Service. Adoption Policy - Action if Kubernetes namespace with same name already exists.
- Annotations Dictionary<string, string>
- The annotations of managed namespace.
- Default
Network Pulumi.Policy Azure Native. Container Service. Inputs. Network Policies - 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 Pulumi.Quota Azure Native. Container Service. Inputs. Resource Quota - 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 string | Pulumi.Azure Native. Container Service. Delete Policy - Delete options of a namespace.
- Labels Dictionary<string, string>
- The labels of managed namespace.
- Adoption
Policy string | AdoptionPolicy - Action if Kubernetes namespace with same name already exists.
- Annotations map[string]string
- The annotations of managed namespace.
- Default
Network NetworkPolicy Policies - 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 ResourceQuota Quota - 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 string | DeletePolicy - Delete options of a namespace.
- Labels map[string]string
- The labels of managed namespace.
- adoption
Policy String | AdoptionPolicy - Action if Kubernetes namespace with same name already exists.
- annotations Map<String,String>
- The annotations of managed namespace.
- default
Network NetworkPolicy Policies - 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 ResourceQuota Quota - 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 String | DeletePolicy - Delete options of a namespace.
- labels Map<String,String>
- The labels of managed namespace.
- adoption
Policy string | AdoptionPolicy - Action if Kubernetes namespace with same name already exists.
- annotations {[key: string]: string}
- The annotations of managed namespace.
- default
Network NetworkPolicy Policies - 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 ResourceQuota Quota - 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 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_ Networkpolicy Policies - 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_ Resourcequota Quota - 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.
- adoption
Policy String | "Never" | "IfIdentical" | "Always" - Action if Kubernetes namespace with same name already exists.
- annotations Map<String>
- The annotations of managed namespace.
- default
Network Property MapPolicy - 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 Property MapQuota - 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 String | "Keep" | "Delete" - Delete options of a namespace.
- labels Map<String>
- The labels of managed namespace.
NamespacePropertiesResponse, NamespacePropertiesResponseArgs
- Provisioning
State string - The current provisioning state of the namespace.
- Adoption
Policy string - Action if Kubernetes namespace with same name already exists.
- Annotations Dictionary<string, string>
- The annotations of managed namespace.
- Default
Network Pulumi.Policy Azure Native. Container Service. Inputs. Network Policies Response - 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 Pulumi.Quota Azure Native. Container Service. Inputs. Resource Quota Response - 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 string - Delete options of a namespace.
- Labels Dictionary<string, string>
- The labels of managed namespace.
- Provisioning
State string - The current provisioning state of the namespace.
- Adoption
Policy string - Action if Kubernetes namespace with same name already exists.
- Annotations map[string]string
- The annotations of managed namespace.
- Default
Network NetworkPolicy Policies Response - 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 ResourceQuota Quota Response - 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 string - Delete options of a namespace.
- Labels map[string]string
- The labels of managed namespace.
- provisioning
State String - The current provisioning state of the namespace.
- adoption
Policy String - Action if Kubernetes namespace with same name already exists.
- annotations Map<String,String>
- The annotations of managed namespace.
- default
Network NetworkPolicy Policies Response - 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 ResourceQuota Quota Response - 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 String - Delete options of a namespace.
- labels Map<String,String>
- The labels of managed namespace.
- provisioning
State string - The current provisioning state of the namespace.
- adoption
Policy string - Action if Kubernetes namespace with same name already exists.
- annotations {[key: string]: string}
- The annotations of managed namespace.
- default
Network NetworkPolicy Policies Response - 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 ResourceQuota Quota Response - 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 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_ Networkpolicy Policies Response - 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_ Resourcequota Quota Response - 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.
- provisioning
State String - The current provisioning state of the namespace.
- adoption
Policy String - Action if Kubernetes namespace with same name already exists.
- annotations Map<String>
- The annotations of managed namespace.
- default
Network Property MapPolicy - 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 Property MapQuota - 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 String - Delete options of a namespace.
- labels Map<String>
- The labels of managed namespace.
NetworkPolicies, NetworkPoliciesArgs
- Egress
string | Pulumi.
Azure Native. Container Service. Policy Rule - Egress policy for the network.
- Ingress
string | Pulumi.
Azure Native. Container Service. Policy Rule - Ingress policy for the network.
- Egress
string | Policy
Rule - Egress policy for the network.
- Ingress
string | Policy
Rule - Ingress policy for the network.
- egress
String | Policy
Rule - Egress policy for the network.
- ingress
String | Policy
Rule - Ingress policy for the network.
- egress
string | Policy
Rule - Egress policy for the network.
- ingress
string | Policy
Rule - Ingress policy for the network.
- egress
str | Policy
Rule - Egress policy for the network.
- ingress
str | Policy
Rule - Ingress policy for the network.
- egress
String | "Deny
All" | "Allow All" | "Allow Same Namespace" - Egress policy for the network.
- ingress
String | "Deny
All" | "Allow All" | "Allow Same Namespace" - Ingress policy for the network.
NetworkPoliciesResponse, NetworkPoliciesResponseArgs
PolicyRule, PolicyRuleArgs
- Deny
All - DenyAllDeny all network traffic.
- Allow
All - AllowAllAllow all network traffic.
- Allow
Same Namespace - AllowSameNamespaceAllow traffic within the same namespace.
- Policy
Rule Deny All - DenyAllDeny all network traffic.
- Policy
Rule Allow All - AllowAllAllow all network traffic.
- Policy
Rule Allow Same Namespace - 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.
- Deny
All - DenyAllDeny all network traffic.
- Allow
All - AllowAllAllow all network traffic.
- Allow
Same Namespace - 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.
- "Deny
All" - DenyAllDeny all network traffic.
- "Allow
All" - AllowAllAllow all network traffic.
- "Allow
Same Namespace" - AllowSameNamespaceAllow traffic within the same namespace.
ResourceQuota, ResourceQuotaArgs
- Cpu
Limit string - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- Cpu
Request string - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- Memory
Limit 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.
- Memory
Request 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 string - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- Cpu
Request string - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- Memory
Limit 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.
- Memory
Request 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 String - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- cpu
Request String - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- memory
Limit 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.
- memory
Request 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 string - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- cpu
Request string - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- memory
Limit 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.
- memory
Request 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.
- cpu
Limit String - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- cpu
Request String - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- memory
Limit 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.
- memory
Request 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
- Cpu
Limit string - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- Cpu
Request string - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- Memory
Limit 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.
- Memory
Request 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 string - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- Cpu
Request string - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- Memory
Limit 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.
- Memory
Request 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 String - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- cpu
Request String - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- memory
Limit 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.
- memory
Request 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 string - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- cpu
Request string - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- memory
Limit 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.
- memory
Request 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.
- cpu
Limit String - CPU limit of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- cpu
Request String - CPU request of the namespace in one-thousandth CPU form. See CPU resource units for more details.
- memory
Limit 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.
- memory
Request 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
- 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: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