Microsoft.ContainerService fleets/managedNamespaces 2026-03-02-preview

Bicep resource definition

The fleets/managedNamespaces resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ContainerService/fleets/managedNamespaces resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.ContainerService/fleets/managedNamespaces@2026-03-02-preview' = {
  parent: resourceSymbolicName
  location: 'string'
  name: 'string'
  properties: {
    adoptionPolicy: 'string'
    deletePolicy: 'string'
    managedNamespaceProperties: {
      annotations: {
        {customized property}: 'string'
      }
      defaultNetworkPolicy: {
        egress: 'string'
        ingress: 'string'
      }
      defaultResourceQuota: {
        cpuLimit: 'string'
        cpuRequest: 'string'
        memoryLimit: 'string'
        memoryRequest: 'string'
      }
      labels: {
        {customized property}: 'string'
      }
    }
    propagationPolicy: {
      placementProfile: {
        defaultClusterResourcePlacement: {
          policy: {
            affinity: {
              clusterAffinity: {
                requiredDuringSchedulingIgnoredDuringExecution: {
                  clusterSelectorTerms: [
                    {
                      labelSelector: {
                        matchExpressions: [
                          {
                            key: 'string'
                            operator: 'string'
                            values: [
                              'string'
                            ]
                          }
                        ]
                        matchLabels: {
                          {customized property}: 'string'
                        }
                      }
                      propertySelector: {
                        matchExpressions: [
                          {
                            name: 'string'
                            operator: 'string'
                            values: [
                              'string'
                            ]
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            }
            clusterNames: [
              'string'
            ]
            placementType: 'string'
            tolerations: [
              {
                effect: 'string'
                key: 'string'
                operator: 'string'
                value: 'string'
              }
            ]
          }
        }
      }
      type: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

Property Values

Microsoft.ContainerService/fleets/managedNamespaces

Name Description Value
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: fleets
properties The resource-specific properties for this resource. FleetManagedNamespaceProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

FleetManagedNamespaceProperties

Name Description Value
adoptionPolicy Action if the managed namespace with the same name already exists. Default is Never. 'Always'
'IfIdentical'
'Never' (required)
deletePolicy Delete options of a fleet managed namespace. Default is Keep. 'Delete'
'Keep' (required)
managedNamespaceProperties The namespace properties for the fleet managed namespace. ManagedNamespaceProperties
propagationPolicy The profile of the propagation to create the namespace. PropagationPolicy

ManagedNamespaceProperties

Name Description Value
annotations The annotations for the fleet managed namespace. ManagedNamespacePropertiesAnnotations
defaultNetworkPolicy The default network policy for the fleet managed namespace. NetworkPolicy
defaultResourceQuota The default resource quota for the fleet managed namespace. ResourceQuota
labels The labels for the fleet managed namespace. ManagedNamespacePropertiesLabels

ManagedNamespacePropertiesAnnotations

Name Description Value

ManagedNamespacePropertiesLabels

Name Description Value

MetaV1LabelSelector

Name Description Value
matchExpressions matchExpressions is a list of label selector requirements. The requirements are ANDed. MetaV1LabelSelectorRequirement[]
matchLabels matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. MetaV1LabelSelectorMatchLabels

MetaV1LabelSelectorMatchLabels

Name Description Value

MetaV1LabelSelectorRequirement

Name Description Value
key key is the label key that the selector applies to. string (required)
operator operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. 'DoesNotExist'
'Exists'
'In'
'NotIn' (required)
values values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. string[]

NetworkPolicy

Name Description Value
egress The egress policy for the managed namespace. 'AllowAll'
'AllowSameNamespace'
'DenyAll'
ingress The ingress policy for the managed namespace. 'AllowAll'
'AllowSameNamespace'
'DenyAll'

PlacementProfile

Name Description Value
defaultClusterResourcePlacement The default ClusterResourcePlacement policy configuration. PlacementV1ClusterResourcePlacementSpec

PlacementV1Affinity

Name Description Value
clusterAffinity ClusterAffinity contains cluster affinity scheduling rules for the selected resources. PlacementV1ClusterAffinity

PlacementV1ClusterAffinity

Name Description Value
requiredDuringSchedulingIgnoredDuringExecution If the affinity requirements specified by this field are not met at scheduling time, the resource will not be scheduled onto the cluster. If the affinity requirements specified by this field cease to be met at some point after the placement (e.g. due to an update), the system may or may not try to eventually remove the resource from the cluster. PlacementV1ClusterSelector

PlacementV1ClusterResourcePlacementSpec

Name Description Value
policy Policy defines how to select member clusters to place the selected resources. If unspecified, all the joined member clusters are selected. PlacementV1PlacementPolicy

PlacementV1ClusterSelector

Name Description Value
clusterSelectorTerms ClusterSelectorTerms is a list of cluster selector terms. The terms are ORed. PlacementV1ClusterSelectorTerm[] (required)

PlacementV1ClusterSelectorTerm

Name Description Value
labelSelector LabelSelector is a label query over all the joined member clusters. Clusters matching the query are selected. If you specify both label and property selectors in the same term, the results are AND'd. MetaV1LabelSelector
propertySelector PropertySelector is a property query over all joined member clusters. Clusters matching the query are selected. If you specify both label and property selectors in the same term, the results are AND'd. At this moment, PropertySelector can only be used with RequiredDuringSchedulingIgnoredDuringExecution affinity terms. This field is beta-level; it is for the property-based scheduling feature and is only functional when a property provider is enabled in the deployment. PlacementV1PropertySelector

PlacementV1PlacementPolicy

Name Description Value
affinity Affinity contains cluster affinity scheduling rules. Defines which member clusters to place the selected resources. Only valid if the placement type is "PickAll" or "PickN". PlacementV1Affinity
clusterNames ClusterNames contains a list of names of MemberCluster to place the selected resources. Only valid if the placement type is "PickFixed" string[]
placementType Type of placement. Can be "PickAll", "PickN" or "PickFixed". Default is PickAll. 'PickAll'
'PickFixed'
tolerations If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be updated or deleted. This field is beta-level and is for the taints and tolerations feature. PlacementV1Toleration[]

PlacementV1PropertySelector

Name Description Value
matchExpressions MatchExpressions is an array of PropertySelectorRequirements. The requirements are AND'd. PlacementV1PropertySelectorRequirement[] (required)

PlacementV1PropertySelectorRequirement

Name Description Value
name Name is the name of the property; it should be a Kubernetes label name. string (required)
operator Operator specifies the relationship between a cluster's observed value of the specified property and the values given in the requirement. 'Eq'
'Ge'
'Gt'
'Le'
'Lt'
'Ne' (required)
values Values are a list of values of the specified property which Fleet will compare against the observed values of individual member clusters in accordance with the given operator. At this moment, each value should be a Kubernetes quantity. For more information, see https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. If the operator is Gt (greater than), Ge (greater than or equal to), Lt (less than), or Le (less than or equal to), Eq (equal to), or Ne (ne), exactly one value must be specified in the list. string[] (required)

PlacementV1Toleration

Name Description Value
effect Effect indicates the taint effect to match. Empty means match all taint effects. When specified, only allowed value is NoSchedule. 'NoSchedule'
key Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. string
operator Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ClusterResourcePlacement can tolerate all taints of a particular category. 'Equal'
'Exists'
value Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. string

PropagationPolicy

Name Description Value
placementProfile The profile to be used for propagation via placement. PlacementProfile
type The type of the policy to be used. Default is Placement. 'Placement' (required)

ResourceQuota

Name Description Value
cpuLimit The CPU limit for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu string
cpuRequest The CPU request for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu string
memoryLimit The memory limit for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory string
memoryRequest The memory request for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory string

TrackedResourceTags

Name Description Value

ARM template resource definition

The fleets/managedNamespaces resource type can be deployed with operations that target:

Usage Examples

Resource format

To create a Microsoft.ContainerService/fleets/managedNamespaces resource, add the following JSON to your template.

{
  "type": "Microsoft.ContainerService/fleets/managedNamespaces",
  "apiVersion": "2026-03-02-preview",
  "name": "string",
  "location": "string",
  "properties": {
    "adoptionPolicy": "string",
    "deletePolicy": "string",
    "managedNamespaceProperties": {
      "annotations": {
        "{customized property}": "string"
      },
      "defaultNetworkPolicy": {
        "egress": "string",
        "ingress": "string"
      },
      "defaultResourceQuota": {
        "cpuLimit": "string",
        "cpuRequest": "string",
        "memoryLimit": "string",
        "memoryRequest": "string"
      },
      "labels": {
        "{customized property}": "string"
      }
    },
    "propagationPolicy": {
      "placementProfile": {
        "defaultClusterResourcePlacement": {
          "policy": {
            "affinity": {
              "clusterAffinity": {
                "requiredDuringSchedulingIgnoredDuringExecution": {
                  "clusterSelectorTerms": [
                    {
                      "labelSelector": {
                        "matchExpressions": [
                          {
                            "key": "string",
                            "operator": "string",
                            "values": [ "string" ]
                          }
                        ],
                        "matchLabels": {
                          "{customized property}": "string"
                        }
                      },
                      "propertySelector": {
                        "matchExpressions": [
                          {
                            "name": "string",
                            "operator": "string",
                            "values": [ "string" ]
                          }
                        ]
                      }
                    }
                  ]
                }
              }
            },
            "clusterNames": [ "string" ],
            "placementType": "string",
            "tolerations": [
              {
                "effect": "string",
                "key": "string",
                "operator": "string",
                "value": "string"
              }
            ]
          }
        }
      },
      "type": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property Values

Microsoft.ContainerService/fleets/managedNamespaces

Name Description Value
apiVersion The api version '2026-03-02-preview'
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (required)
properties The resource-specific properties for this resource. FleetManagedNamespaceProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.ContainerService/fleets/managedNamespaces'

FleetManagedNamespaceProperties

Name Description Value
adoptionPolicy Action if the managed namespace with the same name already exists. Default is Never. 'Always'
'IfIdentical'
'Never' (required)
deletePolicy Delete options of a fleet managed namespace. Default is Keep. 'Delete'
'Keep' (required)
managedNamespaceProperties The namespace properties for the fleet managed namespace. ManagedNamespaceProperties
propagationPolicy The profile of the propagation to create the namespace. PropagationPolicy

ManagedNamespaceProperties

Name Description Value
annotations The annotations for the fleet managed namespace. ManagedNamespacePropertiesAnnotations
defaultNetworkPolicy The default network policy for the fleet managed namespace. NetworkPolicy
defaultResourceQuota The default resource quota for the fleet managed namespace. ResourceQuota
labels The labels for the fleet managed namespace. ManagedNamespacePropertiesLabels

ManagedNamespacePropertiesAnnotations

Name Description Value

ManagedNamespacePropertiesLabels

Name Description Value

MetaV1LabelSelector

Name Description Value
matchExpressions matchExpressions is a list of label selector requirements. The requirements are ANDed. MetaV1LabelSelectorRequirement[]
matchLabels matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. MetaV1LabelSelectorMatchLabels

MetaV1LabelSelectorMatchLabels

Name Description Value

MetaV1LabelSelectorRequirement

Name Description Value
key key is the label key that the selector applies to. string (required)
operator operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. 'DoesNotExist'
'Exists'
'In'
'NotIn' (required)
values values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. string[]

NetworkPolicy

Name Description Value
egress The egress policy for the managed namespace. 'AllowAll'
'AllowSameNamespace'
'DenyAll'
ingress The ingress policy for the managed namespace. 'AllowAll'
'AllowSameNamespace'
'DenyAll'

PlacementProfile

Name Description Value
defaultClusterResourcePlacement The default ClusterResourcePlacement policy configuration. PlacementV1ClusterResourcePlacementSpec

PlacementV1Affinity

Name Description Value
clusterAffinity ClusterAffinity contains cluster affinity scheduling rules for the selected resources. PlacementV1ClusterAffinity

PlacementV1ClusterAffinity

Name Description Value
requiredDuringSchedulingIgnoredDuringExecution If the affinity requirements specified by this field are not met at scheduling time, the resource will not be scheduled onto the cluster. If the affinity requirements specified by this field cease to be met at some point after the placement (e.g. due to an update), the system may or may not try to eventually remove the resource from the cluster. PlacementV1ClusterSelector

PlacementV1ClusterResourcePlacementSpec

Name Description Value
policy Policy defines how to select member clusters to place the selected resources. If unspecified, all the joined member clusters are selected. PlacementV1PlacementPolicy

PlacementV1ClusterSelector

Name Description Value
clusterSelectorTerms ClusterSelectorTerms is a list of cluster selector terms. The terms are ORed. PlacementV1ClusterSelectorTerm[] (required)

PlacementV1ClusterSelectorTerm

Name Description Value
labelSelector LabelSelector is a label query over all the joined member clusters. Clusters matching the query are selected. If you specify both label and property selectors in the same term, the results are AND'd. MetaV1LabelSelector
propertySelector PropertySelector is a property query over all joined member clusters. Clusters matching the query are selected. If you specify both label and property selectors in the same term, the results are AND'd. At this moment, PropertySelector can only be used with RequiredDuringSchedulingIgnoredDuringExecution affinity terms. This field is beta-level; it is for the property-based scheduling feature and is only functional when a property provider is enabled in the deployment. PlacementV1PropertySelector

PlacementV1PlacementPolicy

Name Description Value
affinity Affinity contains cluster affinity scheduling rules. Defines which member clusters to place the selected resources. Only valid if the placement type is "PickAll" or "PickN". PlacementV1Affinity
clusterNames ClusterNames contains a list of names of MemberCluster to place the selected resources. Only valid if the placement type is "PickFixed" string[]
placementType Type of placement. Can be "PickAll", "PickN" or "PickFixed". Default is PickAll. 'PickAll'
'PickFixed'
tolerations If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be updated or deleted. This field is beta-level and is for the taints and tolerations feature. PlacementV1Toleration[]

PlacementV1PropertySelector

Name Description Value
matchExpressions MatchExpressions is an array of PropertySelectorRequirements. The requirements are AND'd. PlacementV1PropertySelectorRequirement[] (required)

PlacementV1PropertySelectorRequirement

Name Description Value
name Name is the name of the property; it should be a Kubernetes label name. string (required)
operator Operator specifies the relationship between a cluster's observed value of the specified property and the values given in the requirement. 'Eq'
'Ge'
'Gt'
'Le'
'Lt'
'Ne' (required)
values Values are a list of values of the specified property which Fleet will compare against the observed values of individual member clusters in accordance with the given operator. At this moment, each value should be a Kubernetes quantity. For more information, see https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. If the operator is Gt (greater than), Ge (greater than or equal to), Lt (less than), or Le (less than or equal to), Eq (equal to), or Ne (ne), exactly one value must be specified in the list. string[] (required)

PlacementV1Toleration

Name Description Value
effect Effect indicates the taint effect to match. Empty means match all taint effects. When specified, only allowed value is NoSchedule. 'NoSchedule'
key Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. string
operator Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ClusterResourcePlacement can tolerate all taints of a particular category. 'Equal'
'Exists'
value Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. string

PropagationPolicy

Name Description Value
placementProfile The profile to be used for propagation via placement. PlacementProfile
type The type of the policy to be used. Default is Placement. 'Placement' (required)

ResourceQuota

Name Description Value
cpuLimit The CPU limit for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu string
cpuRequest The CPU request for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu string
memoryLimit The memory limit for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory string
memoryRequest The memory request for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory string

TrackedResourceTags

Name Description Value

Terraform (AzAPI provider) resource definition

The fleets/managedNamespaces resource type can be deployed with operations that target:

  • Resource groups For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.ContainerService/fleets/managedNamespaces resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.ContainerService/fleets/managedNamespaces@2026-03-02-preview"
  name = "string"
  parent_id = "string"
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = {
    properties = {
      adoptionPolicy = "string"
      deletePolicy = "string"
      managedNamespaceProperties = {
        annotations = {
          {customized property} = "string"
        }
        defaultNetworkPolicy = {
          egress = "string"
          ingress = "string"
        }
        defaultResourceQuota = {
          cpuLimit = "string"
          cpuRequest = "string"
          memoryLimit = "string"
          memoryRequest = "string"
        }
        labels = {
          {customized property} = "string"
        }
      }
      propagationPolicy = {
        placementProfile = {
          defaultClusterResourcePlacement = {
            policy = {
              affinity = {
                clusterAffinity = {
                  requiredDuringSchedulingIgnoredDuringExecution = {
                    clusterSelectorTerms = [
                      {
                        labelSelector = {
                          matchExpressions = [
                            {
                              key = "string"
                              operator = "string"
                              values = [
                                "string"
                              ]
                            }
                          ]
                          matchLabels = {
                            {customized property} = "string"
                          }
                        }
                        propertySelector = {
                          matchExpressions = [
                            {
                              name = "string"
                              operator = "string"
                              values = [
                                "string"
                              ]
                            }
                          ]
                        }
                      }
                    ]
                  }
                }
              }
              clusterNames = [
                "string"
              ]
              placementType = "string"
              tolerations = [
                {
                  effect = "string"
                  key = "string"
                  operator = "string"
                  value = "string"
                }
              ]
            }
          }
        }
        type = "string"
      }
    }
  }
}

Property Values

Microsoft.ContainerService/fleets/managedNamespaces

Name Description Value
location The geo-location where the resource lives string (required)
name The resource name string

Constraints:
Min length = 1
Max length = 63
Pattern = ^[a-z0-9]([-a-z0-9]*[a-z0-9])?$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: fleets
properties The resource-specific properties for this resource. FleetManagedNamespaceProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.ContainerService/fleets/managedNamespaces@2026-03-02-preview"

FleetManagedNamespaceProperties

Name Description Value
adoptionPolicy Action if the managed namespace with the same name already exists. Default is Never. 'Always'
'IfIdentical'
'Never' (required)
deletePolicy Delete options of a fleet managed namespace. Default is Keep. 'Delete'
'Keep' (required)
managedNamespaceProperties The namespace properties for the fleet managed namespace. ManagedNamespaceProperties
propagationPolicy The profile of the propagation to create the namespace. PropagationPolicy

ManagedNamespaceProperties

Name Description Value
annotations The annotations for the fleet managed namespace. ManagedNamespacePropertiesAnnotations
defaultNetworkPolicy The default network policy for the fleet managed namespace. NetworkPolicy
defaultResourceQuota The default resource quota for the fleet managed namespace. ResourceQuota
labels The labels for the fleet managed namespace. ManagedNamespacePropertiesLabels

ManagedNamespacePropertiesAnnotations

Name Description Value

ManagedNamespacePropertiesLabels

Name Description Value

MetaV1LabelSelector

Name Description Value
matchExpressions matchExpressions is a list of label selector requirements. The requirements are ANDed. MetaV1LabelSelectorRequirement[]
matchLabels matchLabels is a map of {key,value} pairs. A single {key,value} in the matchLabels map is equivalent to an element of matchExpressions, whose key field is "key", the operator is "In", and the values array contains only "value". The requirements are ANDed. MetaV1LabelSelectorMatchLabels

MetaV1LabelSelectorMatchLabels

Name Description Value

MetaV1LabelSelectorRequirement

Name Description Value
key key is the label key that the selector applies to. string (required)
operator operator represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists and DoesNotExist. 'DoesNotExist'
'Exists'
'In'
'NotIn' (required)
values values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. string[]

NetworkPolicy

Name Description Value
egress The egress policy for the managed namespace. 'AllowAll'
'AllowSameNamespace'
'DenyAll'
ingress The ingress policy for the managed namespace. 'AllowAll'
'AllowSameNamespace'
'DenyAll'

PlacementProfile

Name Description Value
defaultClusterResourcePlacement The default ClusterResourcePlacement policy configuration. PlacementV1ClusterResourcePlacementSpec

PlacementV1Affinity

Name Description Value
clusterAffinity ClusterAffinity contains cluster affinity scheduling rules for the selected resources. PlacementV1ClusterAffinity

PlacementV1ClusterAffinity

Name Description Value
requiredDuringSchedulingIgnoredDuringExecution If the affinity requirements specified by this field are not met at scheduling time, the resource will not be scheduled onto the cluster. If the affinity requirements specified by this field cease to be met at some point after the placement (e.g. due to an update), the system may or may not try to eventually remove the resource from the cluster. PlacementV1ClusterSelector

PlacementV1ClusterResourcePlacementSpec

Name Description Value
policy Policy defines how to select member clusters to place the selected resources. If unspecified, all the joined member clusters are selected. PlacementV1PlacementPolicy

PlacementV1ClusterSelector

Name Description Value
clusterSelectorTerms ClusterSelectorTerms is a list of cluster selector terms. The terms are ORed. PlacementV1ClusterSelectorTerm[] (required)

PlacementV1ClusterSelectorTerm

Name Description Value
labelSelector LabelSelector is a label query over all the joined member clusters. Clusters matching the query are selected. If you specify both label and property selectors in the same term, the results are AND'd. MetaV1LabelSelector
propertySelector PropertySelector is a property query over all joined member clusters. Clusters matching the query are selected. If you specify both label and property selectors in the same term, the results are AND'd. At this moment, PropertySelector can only be used with RequiredDuringSchedulingIgnoredDuringExecution affinity terms. This field is beta-level; it is for the property-based scheduling feature and is only functional when a property provider is enabled in the deployment. PlacementV1PropertySelector

PlacementV1PlacementPolicy

Name Description Value
affinity Affinity contains cluster affinity scheduling rules. Defines which member clusters to place the selected resources. Only valid if the placement type is "PickAll" or "PickN". PlacementV1Affinity
clusterNames ClusterNames contains a list of names of MemberCluster to place the selected resources. Only valid if the placement type is "PickFixed" string[]
placementType Type of placement. Can be "PickAll", "PickN" or "PickFixed". Default is PickAll. 'PickAll'
'PickFixed'
tolerations If specified, the ClusterResourcePlacement's Tolerations. Tolerations cannot be updated or deleted. This field is beta-level and is for the taints and tolerations feature. PlacementV1Toleration[]

PlacementV1PropertySelector

Name Description Value
matchExpressions MatchExpressions is an array of PropertySelectorRequirements. The requirements are AND'd. PlacementV1PropertySelectorRequirement[] (required)

PlacementV1PropertySelectorRequirement

Name Description Value
name Name is the name of the property; it should be a Kubernetes label name. string (required)
operator Operator specifies the relationship between a cluster's observed value of the specified property and the values given in the requirement. 'Eq'
'Ge'
'Gt'
'Le'
'Lt'
'Ne' (required)
values Values are a list of values of the specified property which Fleet will compare against the observed values of individual member clusters in accordance with the given operator. At this moment, each value should be a Kubernetes quantity. For more information, see https://pkg.go.dev/k8s.io/apimachinery/pkg/api/resource#Quantity. If the operator is Gt (greater than), Ge (greater than or equal to), Lt (less than), or Le (less than or equal to), Eq (equal to), or Ne (ne), exactly one value must be specified in the list. string[] (required)

PlacementV1Toleration

Name Description Value
effect Effect indicates the taint effect to match. Empty means match all taint effects. When specified, only allowed value is NoSchedule. 'NoSchedule'
key Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. string
operator Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ClusterResourcePlacement can tolerate all taints of a particular category. 'Equal'
'Exists'
value Value is the taint value the toleration matches to. If the operator is Exists, the value should be empty, otherwise just a regular string. string

PropagationPolicy

Name Description Value
placementProfile The profile to be used for propagation via placement. PlacementProfile
type The type of the policy to be used. Default is Placement. 'Placement' (required)

ResourceQuota

Name Description Value
cpuLimit The CPU limit for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu string
cpuRequest The CPU request for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-cpu string
memoryLimit The memory limit for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory string
memoryRequest The memory request for the managed namespace. See more at https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/#meaning-of-memory string

TrackedResourceTags

Name Description Value