5. Advanced Concepts

Advanced Concepts Advanced Concepts

Your message board runs on Kubernetes. In this chapter, you add what a production setup needs on top: friendly addresses, a database that operates itself, control over where Pods run and limits for what they may do.

What You Learn

By the end of this chapter, you can:

  • route requests by host name and path to your applications with an Ingress
  • install an operator and let it run a PostgreSQL cluster for you
  • decide on which nodes your Pods run, and keep them off others
  • restrict what a workload may do with a ServiceAccount, RBAC, Pod Security and a NetworkPolicy

How the Labs Work

  • The four sections don’t build on each other, so you can do them in any order. Only 5.1 uses the message board, which you installed with Helm in 4.2.
  • Each section installs what it needs, e.g. an Ingress controller or an operator, with Helm as in chapter 4.
Prerequisites

The releases postgresql from 4.1 and messages from 4.2 run in your cluster.