Skip to content

otzarri/training-create-your-first-kubernetes-operator

Repository files navigation

Training: Create your first Kubernetes operator

Tutorial to learn the basics about creating a Kubernetes operator.

❤️ Recognition

Most of the content is copied from the work done by Abby Bangser for this talk:

I found this tutorial quite helpful so I wanted to document it here.

As the original work is licensed under the MIT license, I'll use the same license for this repository.

🐾 Tutorial

💡 This tutorial assumes that you have three terminal tabs open:K8S Shell: A terminal to run quick responding commands. • Run Shell: A terminal to run commands that take long time. • Code editor: A terminal to edit files. You can use a GUI text editor instead.

This tutorial is divided in several chapters, each of them into a different subdirectory containing:

  • The README.md file with documentation and exercises.
  • The demo directory with the source code ready to complete the exercises.

Chapters:

  1. Setup environment
  2. Generate application scaffolding
  3. Generate a new operator and custom resource
  4. Install the new crd on kubernetes
  5. Understand the new operator by adding logs
  6. Use data defined in the crd within the operator
  7. Deploy your website from the operator
  8. View your website by including a service
  9. Gracefully detect an update request
  10. Update the deployment when imagetag changes
  11. Delete a website deployment
  12. Bonus: Deploy operator to kubernetes

⬅️ ➡️

About

Training to create your first Kubernetes operator with kubebuilder.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published