clay-wangzhi / k8scontrollertutorial

Demo for blog https://www.zhaohuabing.com/post/2023-03-09-how-to-create-a-k8s-controller/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiple ways to create a Kubernetes controller:

  • k8s http api
  • k8s go api
  • k8s client-go informer
  • k8s client-go shared informer
  • k8s go-generator for custom CRD

Note: If you intend to generate code then you will need the code-generator repo to exist in an old-style location. One easy way to do this is to use the command go mod vendor to create and populate the vendor directory.

About

Demo for blog https://www.zhaohuabing.com/post/2023-03-09-how-to-create-a-k8s-controller/


Languages

Language:Go 89.7%Language:Shell 7.8%Language:Makefile 1.9%Language:Dockerfile 0.5%