Skip to content

Users, roles and permissions ​

Admins with the users.manage permission manage people under Administration → Users and Administration → Roles.

How access works ​

  • A role is a named set of permissions. You can create as many as you like.
  • A user gets one or more role assignments. Each assignment is either for all clusters or for one cluster.
  • A user only sees clusters where they have at least cluster.view.
  • Global permissions (managing users, clusters, settings and alerts) only count when the role is assigned for all clusters.

So "Operator on staging, Viewer on production" is two assignments for one user.

k10y / roles
Editing a role's permissions

Permissions ​

Per cluster ​

PermissionAllows
cluster.viewSee the cluster: overview, nodes, workloads, pods, services, ConfigMaps, events, map, charts
secrets.viewSee Secrets (names, types and key names; values are never shown)
logs.viewRead pod logs and live logs
workloads.scaleScale Deployments and StatefulSets
workloads.restartRestart workloads; suspend, resume and run CronJobs
workloads.update_imageChange a Deployment's container image
workloads.rollbackRoll back Deployments
workloads.deleteDelete Deployments and Jobs
pods.execOpen a shell in a pod's container
pods.deleteDelete pods
services.deleteDelete Services
config.deleteDelete ConfigMaps and Secrets
nodes.manageCordon, uncordon and drain nodes
resources.editEdit an object's YAML in its details panel
apply.yamlCreate or update objects with Apply YAML
ai.useRun AI investigations
audit.viewSee the activity log

Global (assign on all clusters) ​

PermissionAllows
clusters.manageAdd, edit and remove clusters
users.manageManage users, roles and role assignments
settings.manageManage system settings (AI providers, alert channels)
alerts.manageCreate and edit alert rules

Built-in roles ​

RolePermissions
AdminEverything. It can't be edited or deleted.
OperatorView, logs, Secrets, scale, restart, update image, roll back, delete pods, edit YAML (new installs), apply YAML, AI, audit. Not the shell.
ViewerView, logs and audit.

Operator and Viewer are starting points: edit them or create your own.

Add a user ​

Users → New user: username, display name, a starting password, and one or more role assignments. Keep Must change password at next login ticked so they choose their own.

Day-to-day ​

  • Reset a password: open the user, type a new password and save. They're signed out everywhere and must change it at the next sign-in.
  • Disable an account: Disable on the Users page. They're signed out immediately and can't sign in until enabled again.
  • Sign a user out: Sign out signs them out of every device. See Sessions.
  • Delete a user: their past actions stay in the audit log under their username.

There must always be at least one active user who can manage users on all clusters. k10y won't let you remove the last one.

Example roles ​

RolePermissionsAssign
Developercluster.view, logs.viewproduction only
Developer (staging)Operator permissions + pods.execstaging only
On-callOperator permissions + nodes.manageall clusters
Auditorcluster.view, audit.viewall clusters

Free and open source. Kubernetes is a trademark of The Linux Foundation; k10y is not affiliated with it.