Saltar al contenido principal
Soporte
0
Contacta con nosotros
English
Nederlands
Deutsch
Servidores dedicadosFlexible VPSTecnología de nubeUbicación compartidaDesafíos en TISectoresCareers
Cloud Compute

Con Cloud Compute, tendrás acceso a un portal desde el que podrás configurar todo tu entorno informático en cualquier momento y desde cualquier lugar del mundo.

Almacenamiento en la nube

Acceso fiable a tus archivos, infraestructura y aplicaciones en todo momento, sin interrupciones ni retrasos. En Worldstream, ofrecemos una gran variedad de soluciones de almacenamiento.

Flexible cloud icon
Nube flexible
Private cloud icon
Nube privada
Bare metal icon
Bare Metal Compute
Hollow cube icon
Almacenamiento de objetos
Hollow cube icon
Almacenamiento de archivos
Block storage icon
Almacenamiento en bloque
Backup storage icon
Almacenamiento de copias de seguridad
¿Necesitas soporte?

Con ingenieros experimentados y un tiempo medio de respuesta de 7 minutos, puedes esperar una solución de soporte técnico sólida muy rápida.

Soporte
Todos los servidores

Elige tu servidor dedicado ahora. Configuración personalizada o entrega inmediata. Servidores potentes diseñados para tu caso de uso.

Casos de uso

Sea cual sea tu caso de uso, te ayudamos a encontrar la solución adecuada.

Deal servers icon
Ofertas
AMD servers icon
Servidores AMD
AI servers icon
Servidores Intel
Hollow cube icon
Virtualización, Contenerización y Orquestación
Hollow cube icon
Sitios web y aplicaciones
Hollow cube icon
Infraestructura para gaming y streaming

Soporte 24/7/365 con un tiempo medio de respuesta de solo 7 minutos. Gracias a nuestros propios centros de datos, nuestros ingenieros pueden acceder directamente a tu servidor para ofrecer soporte rápido y directo. Contáctanos por correo o teléfono en cualquier momento.

Soporte
Externalización inteligente

Algunos aspectos de la TI crean valor añadido, mientras que otros sirven de apoyo. Aprovéchalo como punto de partida para la externalización.

Rentabilidad

Los paquetes informáticos completos pueden parecer la opción segura, pero al considerar los costes, otras opciones suelen tener más sentido.

Flexibilidad y control informáticos

Externalizar no implica perder el control; en realidad proporciona más flexibilidad y control.

Repatriación desde la nube

La nube no es el destino final: debes evaluar y ajustar tu entorno de nube continuamente a medida que cambian las necesidades.

Servicios financieros
Logística y transporte
Venta minorista y comercio electrónico
Medios de comunicación y entretenimiento
Tecnología y desarrollo de software
Seguridad
Proveedores de servicios gestionados
¿Necesitas soporte?

Con ingenieros experimentados y un tiempo medio de respuesta de 7 minutos, puedes esperar una solución de soporte técnico sólida muy rápida.

Habla con nosotrosContacta con nosotros
Acerca de WorldstreamAcerca de la tecnologíaCasosBase de conocimientos
Quiénes somosConoce al equipoTrabaja con nosotrosHazte distribuidorcertificacionesNuestros centros de datosNuestra redProtección DDoSServidores AMD EPYCPartners tecnológicosAcerca de los servidores dedicadosTodos los casosEasyTerraDutch Drone CompanyPerfGridArtículosPreguntas frecuentesNoticias y blogsProductos y servicios
Contacta con nosotros

Llama al +31 (0) 174 – 712 117 Industriestraat 53, Naaldwijk

Contacta con nosotros
Worldstream Portal
English
Nederlands
Deutsch
0
Servidores dedicadosFlexible VPSTecnología de nubeUbicación compartidaDesafíos en TISectoresCareersAcerca de WorldstreamAcerca de la tecnologíaCasosBase de conocimientosMy Worldstream
Contact
Soporte
EnglishNederlandsDeutsch
  1. InicioInicio
  2. Base de conocimientos
  3. Containers & Kubernetes
  4. Kubernetes RBAC basics: users, roles and service accounts

Kubernetes RBAC basics: users, roles and service accounts

Se aplica a Any self-managed Kubernetes clusterAudiencia Platform engineerÚltima revisión September 2026

Respuesta rápida

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.

En esta página
  • 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
¿Te ha resultado útil este artículo?

Informática sólida. Sin sorpresas

Tu socio para la madurez informática
Eliminamos barreras para que puedas correr
Costes previsibles y transparentes

Contacto

  • Industriestraat 53, Naaldwijk
Contacta con nosotros
Worldstream Portal (opens in a new tab)
  • Métodos de pago
  • Abuso
  • Recursos para desarrolladores
  • Centro de operaciones de red
  • Quiénes somos
  • Conoce al equipo
  • Trabaja con nosotros
  • Hazte distribuidor
  • certificaciones
  • Nuestros centros de datos
  • Nuestra red
  • Protección DDoS
  • Servidores AMD EPYC
  • Partners tecnológicos
  • Sistemas operativos
  • Vista general
  • Preguntas frecuentes
  • Casos
  • Noticias y blogs
  • Use Cases
English
Nederlands
Deutsch
English
Nederlands
Deutsch
  • Legal
  • Notificación de vulnerabilidades