Skip to content
Docs Try Aspire

RoleBinding

Class sealed net10.0
📦 Aspire.Hosting.Kubernetes v13.1.2-preview.1.26125.13
Represents a Kubernetes RoleBinding resource, binding a Role or ClusterRole to a set of subjects (users, groups, or service accounts).
namespace Aspire.Hosting.Kubernetes.Resources;
public sealed class RoleBinding
: Aspire.Hosting.Kubernetes.Resources.BaseKubernetesResource
{
// ...
}
A RoleBinding grants the permissions defined in a Role to specific users, groups, or service accounts within a namespace. It supports the inclusion of multiple subjects and references a single role through the RoleRef property. The RoleBinding resource is namespace-scoped and helps manage access control within the Kubernetes RBAC framework.
View all constructors
RoleRefget; set
Gets or sets the reference to the role or cluster role that the binding applies to.
Subjectsget
Represents a collection of Subjects that define the identities (users, groups, or service accounts) bound to a specific Role or ClusterRole in Kubernetes.
View all properties