liveBook · Manning

Public-key infrastructure

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

Public key infrastructure is a security framework that uses public-key cryptography and trusted certificates to authenticate parties and protect communications.

Public-key infrastructure (PKI) secures Kubernetes client–server communication through certificates and a trusted certificate authority (CA). The CA signs certificates so clients can verify servers, while servers can require client certificates for mutual authentication. section 1.7

Kubernetes acts as its cluster CA and source of trust. kubectl, the kubelet, scheduler, controller manager, API server, and etcd use client or server certificates to authenticate requests and component connections. section 1.7 section 2.2.1

For practical inspection and exam preparation:

  • List control-plane configuration with ls /etc/kubernetes; inspect kubelet.conf to find its API endpoint and client certificate path. section 2.2.1
  • Review /etc/kubernetes/pki for the CA, API server, etcd-client, and kubelet-client certificates and keys. section 2.2.1
  • Remember that one service can hold both certificates: the kubelet uses a client certificate for API authentication and a server certificate for proving its identity. section 2.2.1
Figure 2.14 Client and server certificate placement in Kubernetes
figure

Use the certificate-placement diagram to map Kubernetes components to their client and server certificates. section 2.2.1

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

How deep it goes
Explains the CA trust model and certificate locations, then stops short of certificate creation or management procedures.
Examples
Uses kubectl authentication, kubelet.conf, /etc/kubernetes, and /etc/kubernetes/pki as concrete inspection examples.
What it assumes
Assumes familiarity with kubectl and client-server communication while establishing certificates, CAs, and Kubernetes component identities.
What you can do after
Evaluate Kubernetes certificate-based authentication and locate component certificates during cluster inspection or CKA troubleshooting.
How it connects
Connects certificate authorities, client certificates, server certificates, mutual authentication, kubelet, scheduler, API server, controller manager, and etcd.

Also explained in

Compare how 2 books explain public-key infrastructure →

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.