# ClusterRoleBinding Constructors

- Package: [Aspire.Hosting.Kubernetes](/reference/api/csharp/aspire.hosting.kubernetes.md)
- Type: [ClusterRoleBinding](/reference/api/csharp/aspire.hosting.kubernetes/clusterrolebinding.md)
- Kind: `Constructors`
- Members: `1`

Represents a ClusterRoleBinding in a Kubernetes cluster.

## ClusterRoleBinding

- Name: `Constructor`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/becb48e2d61099e35ae336d527d3875e928d6594/src/Aspire.Hosting.Kubernetes/Resources/ClusterRoleBindingV1.cs#L17-L39)

Represents a ClusterRoleBinding in a Kubernetes cluster.

```csharp
public sealed class ClusterRoleBinding
{
    public ClusterRoleBinding()
    {
        // ...
    }
}
```

## Remarks

A ClusterRoleBinding grants access to cluster-scoped resources by binding a ClusterRole to one or more subjects. It contains a reference to a ClusterRole and a collection of subjects, such as users, groups, or service accounts, to which it applies.
