liveBook · Manning

User

As explained in Acing the Certified Kubernetes Administrator Exam, Second Edition

A user is an identity principal represented in a certificate for authenticating to the Kubernetes API.

A Kubernetes user is an identity principal represented by credentials, commonly a client certificate, when authenticating to the Kubernetes API. Kubernetes does not store users in a built-in database; RBAC assigns permissions to the authenticated username or its groups. section 3.2 section 3.4

Create and use a certificate-backed user through this operational sequence:

  • Generate a private key and certificate signing request, placing the username in the certificate common name and groups in organization fields; the example uses carol and developers. section 3.2
  • Bind permissions with roles, cluster roles, role bindings, or cluster role bindings, then verify access by switching contexts and attempting permitted or forbidden operations. section 3.4

Carol, a pod-reader user

A certificate identifies Carol as user carol and group developers. After the developers group receives a pod-reader role binding, Carol can list pods but receives Forbidden when attempting to delete one.

Figure 3.11 Creating a kubeconfig for a new user and generating a certificate using the certificate signing request
figure

Trace the relationship between certificate generation, kubeconfig construction, and API access for a new user. section 3.2

How Acing the Certified Kubernetes Administrator Exam, Second Edition covers it

How deep it goes
Explains certificate generation, CSR approval, kubeconfig setup, RBAC binding, and permission verification, stopping short of certificate internals.
Examples
Demonstrates Carol’s developers identity, issued certificate, kubeconfig context, pod listing, and forbidden pod deletion.
What it assumes
Assumes a Kubernetes API and certificate-authority workflow, while distinguishing unmanaged users from managed Service Accounts.
What you can do after
Operate/configure a certificate-backed kubeconfig user, bind least-privilege permissions, switch contexts, and verify access results.
How it connects
Connects users with the Kubernetes API, client certificates, groups, authentication, RBAC, roles, role bindings, and Service Accounts.

Also explained in

Compare how 2 books explain user →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the Certified Kubernetes Administrator Exam, Second Edition. The section links point to the parts of the book it draws on.