Zum Inhalt springen
_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
Referenzen Technologien Blog Know-how Tools
Über uns Zusammenarbeit Karriere
CS EN DE
Lassen Sie uns sprechen

Kubernetes RBAC

04. 07. 2025 1 Min. Lesezeit intermediate

Cloud Pokročilý

Kubernetes RBAC

KubernetesRBACSecurity 3 min čtení

Role-Based Access Control v Kubernetes. Roles, ClusterRoles, bindings a service accounts.

Koncept

RBAC řídí kdo (Subject) může co (Verb) s čím (Resource). Roles pro namespace, ClusterRoles pro celý cluster.

Příklad

# Role — read-only přístup k podům
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
  namespace: production
  name: pod-reader
rules:
  - apiGroups: [""]
    resources: ["pods", "pods/log"]
    verbs: ["get", "list", "watch"]
---
# Binding
kind: RoleBinding
metadata:
  namespace: production
  name: read-pods
subjects:
  - kind: User
    name: [email protected]
roleRef:
  kind: Role
  name: pod-reader
  apiGroup: rbac.authorization.k8s.io

Best practices

  • Principle of least privilege
  • Namespace-scoped Roles kde možné
  • Service Account per aplikace
  • Pravidelný audit RBAC

Shrnutí

RBAC je základ bezpečnosti K8s. Vždy konfigurujte — default service account má příliš mnoho práv.

Potřebujete pomoct s implementací?

Náš tým má zkušenosti s návrhem a implementací moderních architektur. Rádi vám pomůžeme.

Nezávazná konzultace

Teilen:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.