Index

Free, with Google

Keep going, free.

A free account opens lessons 2 and 3 of every track, 33 more lessons, and keeps your progress and review cards on every device.

Start free with Google

A chalk plan

Open everything on chalk.

Every lesson, board, video, lab and paper, and the full review decks. Yearly is $39/year.

See plansStart free instead

Module 07 · DevOps · CI/CD, IaC & Operations · about 15 min to read

Play it as a journeyTutor comes with a plan

Who may touch the cluster: RBAC, pod security and network policy

Under the Hood
Under the Hood · Open board

: one request walking through the cluster’s front door, from the login check to the written record. This lesson is the checks along that walk, and the rules that govern traffic after it.

Before you start. Under the Hood (Kubernetes Internals) showed that every change goes through the API server, which asks three questions in order: who are you, may you do this, and is this change acceptable. The Harbor Master (pods, deployments, services) gave you labels and selectors, the way one object picks out others by the labels they wear. Least Privilege & the 12-Factor App gave you the service account, the login a program uses to talk to the cluster, and kubectl auth can-i, which asks the cluster what an account may do. The cluster that won't sail (Kubernetes troubleshooting) gave you the habit of reading Events, the cluster’s own notes, before changing anything.

Lesson 60 of 70 in DevOps

The rest of this lesson is part of a plan.

A plan opens every lesson, board, video, lab and paper on chalk. Yearly is $39/year.

See plansAlready a member? Sign in

Or start free: a free account opens lessons 2 and 3 of every track.

In this lesson

  • April 2021: the pod gate that was going away
  • The four gates: who, what shape, who talks, our own rules
  • RBAC: a Role lists the allowed, a binding hands it over
  • Pod Security: securityContext is the setting, the Standard is the rule
  • NetworkPolicy: allowed unless a policy selects the pod
  • Admission policy: our own rules, written as one line

Terms it explains: RBAC, Pod Security, NetworkPolicy, Admission policy, Role, RoleBinding, ClusterRole, ClusterRoleBinding, securityContext, Pod Security Standards, Common mistakes, API server, containerd / runc, controller manager.

Lab

Each ship books quay space before it docks, and the harbour master trusts the booking. How much should a ship book?

Drag Quay booked per ship from 100m to 1000m and watch Squeezed at the tide reach zero.

Open The berth plan

Review DevOps