# 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/5bd693ae1897dee5e2ce71c2cc08879c1c7eff51/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.
