liveBook · Manning

Certificate

As explained in Kubernetes for Developers

A TLS certificate is a digital certificate that authenticates a network endpoint and supports Transport Layer Security connections.

A TLS certificate helps authenticate a network endpoint and establish HTTPS connections. In Kubernetes, an Ingress can terminate TLS at the load balancer, keeping certificate handling out of the application. It can then forward traffic to backend Services over HTTP or HTTPS. section 7.2.1

A Kubernetes TLS setup combines these pieces:

  • A certificate issued by a certificate authority and its matching private key. section 7.2.1
  • A Kubernetes Secret containing the certificate and key. section 7.2.1

Using a self-signed certificate

For testing, OpenSSL can create a private key and self-signed certificate, which can then be imported with kubectl create secret tls my-tls-cert --cert example.crt --key example.key. This encrypts the connection, but browsers cannot verify the endpoint’s identity and will show warnings. section 7.2.1

How Kubernetes for Developers covers it

How deep it goes
Explains certificate and key storage, Secret references, termination choices, and self-signed testing, but not certificate-authority procedures in detail.
Examples
Uses OpenSSL-generated self-signed files, kubectl Secret creation, and an Ingress hostname configuration.
What it assumes
Assumes basic Kubernetes Ingress and Service concepts while introducing certificate files, private keys, and Secrets.
What you can do after
Operate/configure an Ingress HTTPS endpoint by creating a TLS Secret and referencing it from an Ingress.
How it connects
Connects TLS certificates with HTTPS, Ingress, Kubernetes Secrets, Services, and TLS termination.

Also explained in

Compare how 15 books explain certificate →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Kubernetes for Developers. The section links point to the parts of the book it draws on.