The dry-run YAML factory

Lesson 4 of 28 · The exam and the mental model · 2 min Get the course to watch

Typing a Deployment from memory takes minutes and a typo costs more. Having kubectl write it takes seconds. The trick is one flag: tell kubectl to build the object, but not send it, and print the YAML instead.

The rest of this lesson

  • The pattern
  • What can be generated
  • What cannot
  • Client or server
  • The idea to keep

The full lesson is animated and narrated, with a short quiz, and you can pause it to ask a question. It comes with Kubernetes certification: the CKA curriculum.