Skip to content
Docs Try Aspire

ClusterRoleBinding

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a ClusterRoleBinding in a Kubernetes cluster.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ClusterRoleBinding
: Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
{
// ...
}
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.
View all constructors
RoleRefget; set
Gets or sets the RoleRef property, which contains information pointing to the Kubernetes role being referenced within the ClusterRoleBinding configuration. The RoleRef property defines the role name, kind, and the group for API access, to ensure the binding is correctly associated with the intended permissions and scope.
Subjectsget
Gets the list of subjects associated with the ClusterRoleBinding. Subjects refer to the entities (users, groups, or service accounts) that the role binding applies to.
View all properties