Skip to content
Docs Try Aspire

ClusterRole

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a Kubernetes ClusterRole resource in API version v1.
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class ClusterRole
: Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
{
// ...
}
A ClusterRole is a cluster-scoped resource in Kubernetes used for Role-Based Access Control (RBAC). It is used to define a set of permissions that are applicable across the entire cluster.
View all constructors
AggregationRuleget; set
Gets or sets the aggregation rule associated with the ClusterRole. Defines how multiple cluster roles can be aggregated together, simplifying role-based access control implementation.
Rulesget
Represents a collection of policy rules applied to the Kubernetes ClusterRole.
View all properties