One image from outside the approved registries
Compare every running image against the approved registry list with kubectl and jq, then trace the odd one back to the ReplicaSet that keeps recreating it.
- Terminal mission
- Intermediate
- 3 questions
- 0 of 3 solved
Your goal
Your goalFind the one pod running an image from an unapproved registry and what keeps recreating it.
Policy says cluster images come from four registries, written down in approved-registries.txt. Admission enforcement is still in audit mode, so nothing has been blocked yet.
jq can pull every image out of kubectl get pods -A -o json. ownerReferences on a pod names the controller that created it.
What’s on screen
- Briefing
- the story: what happened and what evidence you were handed.
- Terminal
- the dark box. It is a pretend Linux shell that runs in your browser. Type a command and press Enter. Nothing you type touches a real system.
- Walkthrough
- the numbered path. Each step says what to type and what you should see. Hints open one at a time.
- Answer boxes
- under each question step. Type what you found and press Check.
ops-bastion · Kubernetes review
Type help for the command list and objectives for your tasks. Everything runs in this browser.
Up and down arrows walk your history. Ctrl+L clears the screen. Try help, ls, and objectives.
Read first
More in Kubernetes review
The whole walkthrough
Every step in order: 276 words, about 2 min. It gives away every answer, so try the steps first.