Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 2.13 KB

workshop.md

File metadata and controls

38 lines (31 loc) · 2.13 KB

Workshop on API Group Versions and Webhooks

This is a placeholder if there is the need of a workshop on Kubernetes API Group Versions and kubebuilder with webhooks.

Part 1: Kubernetes API Group Versions

Part 2: Real world problem with API Group Versions

  • Business Problem: you have deployed an API Group Version of your app in production but now you need to change the schema
  • Example of hpa v2beta2 and v1 on autoscaling
  • kubectl get hpa php-apache-autoscaler -n myexample -o yaml # v1
  • kubectl get hpa.v2beta2.autoscaling php-apache-autoscaler -n myexample -o yaml
  • Rockbands schema
  • Concept of webhook
  • Supporting multiple API Group Versions
  • Multiple examples for Velero: https://github.com/brito-rafa/k8s-webhooks/blob/master/examples-for-projectvelero/README.md
  • Going over the step-by-step on the code if there is time
  • If there is no time:
  • deploy case C target and show the creation of objects
  • Show the type and webhook code.