Zum Hauptinhalt springen
Support
0
Kontaktieren Sie uns
English
Nederlands
Español
Dedicated ServersFlexible VPSCloud-TechnologieColocationHerausforderungen in der ITSektorenCareers
Cloud Compute

Mit Cloud Compute haben Sie jederzeit und überall Zugriff auf ein Portal, über das Sie Ihre gesamte IT-Umgebung konfigurieren können – egal wo auf der Welt Sie sich befinden.

Cloud-Speicher

Zuverlässiger Zugriff auf Ihre Dateien, Infrastruktur und Anwendungen zu jeder Zeit – ganz ohne Unterbrechungen oder Verzögerungen. Bei Worldstream bieten wir eine Vielzahl von Speicherlösungen an.

Flexible cloud icon
Flexible Cloud
Private cloud icon
Private Cloud
Bare metal icon
Bare Metal Compute
Hollow cube icon
Objektspeicher
Hollow cube icon
Dateiablage
Block storage icon
Blockspeicher
Backup storage icon
Sicherungsspeicher
Brauchen Sie Unterstützung?

Mit erfahrenen Technikern und einer durchschnittlichen Reaktionszeit von 7 Minuten erhalten Sie innerhalb kürzester Zeit eine solide technische Supportlösung.

Dedicated Server

Wählen Sie jetzt Ihren Dedicated Server. Individuelle oder Instant Delivery. Leistungsstarke Server, die perfekt zu Ihrem Anwendungsfall passen.

Use Cases

Ganz gleich, welcher Use Case – wir helfen Ihnen, die ideale Lösung zu finden.

Deal servers icon
Deals
AMD servers icon
AMD-Prozessoren
AI servers icon
Intel-Prozessoren
Hollow cube icon
Virtualisierung, Containerisierung & Orchestrierung
Hollow cube icon
Websites & Applications
Hollow cube icon
Gaming & Streaming Infrastruktur
Brauchen Sie Unterstützung?

Mit erfahrenen Technikern und einer durchschnittlichen Reaktionszeit von 7 Minuten erhalten Sie innerhalb kürzester Zeit eine solide technische Supportlösung.

Smartes Outsourcing

Bestimmte IT-Lösungen generieren Mehrwert, andere erfüllen eher eine unterstützende Funktion. Denken Sie beim Outsourcing daran.

Kosteneffizienz

IT-Komplettpakete mögen erstmal wie eine sichere Option erscheinen, doch wenn man sich die Kosten genau anschaut, sind andere Lösungen oft sinnvoller.

IT-Flexibilität und Kontrolle

Outsourcing heißt nicht, dass man die Kontrolle verliert; man bekommt sogar mehr Flexibilität und Kontrolle.

Cloud-Repatriierung

Die Cloud ist kein Endziel: Sie sollten Ihre Cloud-Umgebung kontinuierlich prüfen und an die sich ändernden Anforderungen anpassen.

Finanzdienstleistungen
Logistik und Transport
Einzelhandel und E-commerce
Medien und Unterhaltung
Technik und Softwareentwicklung
Sicherheit
Managed Service Provider
Brauchen Sie Unterstützung?

Mit erfahrenen Technikern und einer durchschnittlichen Reaktionszeit von 7 Minuten erhalten Sie innerhalb kürzester Zeit eine solide technische Supportlösung.

Chatten Sie mit unsKontaktieren Sie uns
Über WorldstreamÜber die TechnologieKundenfälleWissensdatenbank
Über unsLernen Sie unser Team kennenJobsWerden Sie WiederverkäuferZertifizierungenUnsere RechenzentrenUnser NetzwerkDDoS-SchutzAMD EPYC-ServerTechnologiepartnerBetriebssystemeAlle KundenfälleEasyTerraDutch Drone CompanyPerfGridArtikelFAQNachrichten und BlogbeiträgeProdukte und Services
Kontaktieren Sie uns

Rufen Sie an unter +31 (0) 174 – 712 117 Industriestraat 53, Naaldwijk

English
Nederlands
Español
0
Dedicated ServersFlexible VPSCloud-TechnologieColocationHerausforderungen in der ITSektorenCareersÜber WorldstreamÜber die TechnologieKundenfälleWissensdatenbankMy Worldstream
Contact
Support
EnglishNederlandsEspañol
  1. HomeHome
  2. Knowledge Base
  3. Containers & Kubernetes
  4. Kubernetes RBAC basics: users, roles and service accounts

Kubernetes RBAC basics: users, roles and service accounts

Gilt für Any self-managed Kubernetes clusterZielgruppe Platform engineerZuletzt geprüft September 2026

Kort antwoord

Kubernetes RBAC (role-based access control) grants permissions by binding a Role or ClusterRole, which lists allowed actions on resources, to a user, group, or service account through a RoleBinding or ClusterRoleBinding. Roles are namespace-scoped, ClusterRoles apply cluster-wide. Start from least privilege: grant only the verbs and resources a person or workload actually needs, in the narrowest scope that works.

Auf dieser Seite
  • What RBAC controls
  • Roles vs. ClusterRoles
  • RoleBindings vs. ClusterRoleBindings
  • Example: a read-only, namespace-scoped role
  • kubeconfig and service accounts
  • Principle of least privilege

This is standard, open-source Kubernetes behaviour, not specific to any provider or infrastructure choice. It applies equally whether your cluster runs on Bare Metal Compute, Flexible VPS, or Private Cloud, or anywhere else.

What RBAC controls

RBAC decides who, or what, can do what, to which resources, in your cluster. "Who" can be a human user authenticating through a kubeconfig, or a workload authenticating as a service account. "What" is a set of verbs: get, list, watch, create, update, patch, delete, and a few others. "Which resources" means Kubernetes objects: pods, deployments, secrets, config maps, and so on, optionally scoped to a specific namespace.

Without RBAC configured deliberately, it's easy to end up with everyone, and every workload, holding far more access than they need. RBAC exists to make access explicit and auditable rather than implicit.

Roles vs. ClusterRoles

  • Role. A set of permissions scoped to a single namespace. A Role defined in the billing namespace only grants access to resources in billing, nowhere else.
  • ClusterRole. The same idea, but cluster-wide. A ClusterRole can grant access across all namespaces, or to cluster-scoped resources that don't belong to any namespace at all, such as nodes or persistent volumes.

A useful rule of thumb: default to a Role unless you have a specific reason to need cluster-wide scope. Namespace-scoped access is easier to reason about and limits the blast radius if a credential leaks.

RoleBindings vs. ClusterRoleBindings

Defining a Role or ClusterRole doesn't grant anyone anything on its own, it just describes a set of permissions. A binding is what actually attaches that role to a user, group, or service account.

  • RoleBinding. Grants a Role (or, notably, a ClusterRole) to a subject within one namespace. You can bind a ClusterRole through a RoleBinding to reuse a common permission set namespace by namespace, without granting cluster-wide access.
  • ClusterRoleBinding. Grants a ClusterRole to a subject across the entire cluster.

Example: a read-only, namespace-scoped role

The manifest below defines a Role that can only read pods and their logs in the billing namespace, then binds it to a service account.

apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  namespace: billing
  name: pod-reader
rules:
  - apiGroups: [""]
    resources: ["pods", "pods/log"]
    verbs: ["get", "list", "watch"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: RoleBinding
metadata:
  name: read-pods
  namespace: billing
subjects:
  - kind: ServiceAccount
    name: billing-readonly
    namespace: billing
roleRef:
  kind: Role
  name: pod-reader
  apiGroup: rbac.authorization.k8s.io

This grants exactly three verbs, on two resource types, in one namespace, nothing more. It's a reasonable pattern for a monitoring tool, a support engineer, or a CI job that only needs to inspect pod state and logs.

kubeconfig and service accounts

Human users typically authenticate through a kubeconfig file, which points kubectl at a cluster and carries credentials, a certificate, a token, or an external identity-provider login, depending on how the cluster is set up. Each user or team usually gets their own kubeconfig context, scoped through RBAC to only the namespaces and permissions they need.

Workloads running inside the cluster use service accounts instead. Every namespace has a default service account, but running everything under the default is a common way to end up with broader access than intended. Create a dedicated service account per workload, bind it to a purpose-built Role, and mount only that identity into the pod that needs it.

Principle of least privilege

The pattern that keeps RBAC manageable as a cluster grows: grant the smallest set of verbs, on the smallest set of resources, in the smallest scope, that lets a user or workload do its job. Prefer Roles over ClusterRoles, prefer read-only verbs (get, list, watch) over write access unless write access is genuinely needed, and give each workload its own service account rather than sharing one broadly-scoped identity across many pods. Review bindings periodically, since access that made sense when it was granted doesn't always stay that way.

Related articles

  • Self-managed Kubernetes on Worldstream: choosing your infrastructure
  • Handling stateful services in containers
  • Do containers replace VMs? Choosing the right isolation model
War dieser Artikel hilfreich?

Solide IT. Keine Überraschungen

Sparringspartner für IT-Reife
Wir räumen die Hindernisse aus dem Weg, damit Sie freie Bahn haben
Vorhersehbare und transparente Kosten

Kontakt

  • Industriestraat 53, Naaldwijk
  • Zahlungsmöglichkeiten
  • Missbrauch
  • Ressourcen für Entwickler
  • Network Operations Center
  • Über uns
  • Lernen Sie unser Team kennen
  • Jobs
  • Werden Sie Wiederverkäufer
  • Zertifizierungen
  • Unsere Rechenzentren
  • Unser Netzwerk
  • DDoS-Schutz
  • AMD EPYC-Server
  • Technologiepartner
  • Betriebssysteme
  • Übersicht
  • FAQ
  • Kundenfälle
  • Nachrichten und Blogbeiträge
  • Use Cases
English
Nederlands
Español
English
Nederlands
Español
  • Rechtliches
  • Transparenzhinweis