---
title: "Tier"
description: "Reference for the Tier resource in Calico Open Source that groups policies into ordered evaluation buckets."
product: "Calico Open Source"
version: "3.33 (latest)"
section: "Reference"
canonical_url: "https://docs.tigera.io/calico/latest/reference/resources/tier"
---

# Tier

A tier resource (Tier) represents an ordered collection of [NetworkPolicies](https://docs.tigera.io/calico/latest/reference/resources/networkpolicy.md) and/or [GlobalNetworkPolicies](https://docs.tigera.io/calico/latest/reference/resources/globalnetworkpolicy.md). Tiers are used to divide these policies into groups of different priorities. These policies are ordered within a tier: the additional hierarchy of tiers provides more flexibility because the `Pass` `action` in a rule jumps to the next tier. Some example use cases for this are:

- Allowing privileged users to define security policy that takes precedence over other users.
- Translating hierarchies of physical firewalls directly into Calico policy.

Tier is a cluster-scoped resource.

For `kubectl` commands, you can use the aliases `tier.projectcalico.org`, `tiers.projectcalico.org`, `tier.p`, and `tiers.p`.

## Sample YAML

This sample creates a tier with order `100` that denies packets when its policies take no action on them.

```yaml
apiVersion: projectcalico.org/v3
kind: Tier
metadata:
  name: internal-access
spec:
  order: 100
  defaultAction: Deny
```

## Definition

### Metadata

| Field  | Description                      | Accepted Values | Schema | Default |
| ------ | -------------------------------- | --------------- | ------ | ------- |
| `name` | The name of this tier. Required. |                 | string |         |

### Spec

| Field           | Description                                                                                                                                              | Accepted Values | Schema | Default   |
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------- | ------ | --------- |
| `order`         | (Optional) Indicates priority of this tier, with lower order taking precedence. No value is treated as order `1000000`, the order of the `default` tier. |                 | float  | `1000000` |
| `defaultAction` | (Optional) Indicates the default action, when this tier applies to an endpoint, but takes no action on the packet.                                       | `Deny`, `Pass`  | string | `Deny`    |

All policies created by Calico orchestrator integrations are created in the `default` tier (order `1000000`), except Kubernetes ClusterNetworkPolicies, which are created in the `kube-admin` (order `1000`) and `kube-baseline` (order `10000000`) tiers. If you install Calico with the operator and the `projectcalico.org/v3` API is available (through the Calico API server or v3 CRDs), the operator also creates a `calico-system` tier (order `100`) for the policies it installs to allow Calico component traffic.

## How policy is evaluated

When a new connection is processed by Calico, each tier that contains a policy that applies to the endpoint processes the packet. Tiers are sorted by their `order` - smallest number first.

Policies in each tier are then processed in order.

- If a [NetworkPolicy](https://docs.tigera.io/calico/latest/reference/resources/networkpolicy.md) or [GlobalNetworkPolicy](https://docs.tigera.io/calico/latest/reference/resources/globalnetworkpolicy.md) in the tier `Allow`s or `Deny`s the packet, then evaluation is done: the packet is handled accordingly.
- If a [NetworkPolicy](https://docs.tigera.io/calico/latest/reference/resources/networkpolicy.md) or [GlobalNetworkPolicy](https://docs.tigera.io/calico/latest/reference/resources/globalnetworkpolicy.md) in the tier `Pass`es the packet, the next tier containing a policy that applies to the endpoint processes the packet.

If the tier applies to the endpoint, but takes no action on the packet the packet is dropped. This behaviour can be changed by setting the `defaultAction` of a tier to `Pass`.

If the last tier applying to the endpoint `Pass`es the packet, that endpoint's [profiles](https://docs.tigera.io/calico/latest/reference/resources/profile.md) are evaluated.

## Additional resources

- [Get started with policy tiers](https://docs.tigera.io/calico/latest/network-policy/policy-tiers/tiered-policy.md)
- [Configure RBAC for tiered policies](https://docs.tigera.io/calico/latest/network-policy/policy-tiers/rbac-tiered-policies.md)
- [Network policy](https://docs.tigera.io/calico/latest/reference/resources/networkpolicy.md)
- [Global network policy](https://docs.tigera.io/calico/latest/reference/resources/globalnetworkpolicy.md)
