Custom resource definition(CRD)
1. 简介
// +genclient:noStatusSimilar to how an UpdateStatus() method exists for the status subresource, we can generate the GetScale() and UpdateScale() methods for the scale subresource by adding the following tags on the Database type. // +genclient:method=GetScale,verb=get,subresource=scale,result=k8s.io/api/autoscaling/v1.Scale // +genclient:method=UpdateScale,verb=update,subresource=scale,input=k8s.io/api/autoscaling/v1.Scale,result=k8s.io/api/autoscaling/v1.Scale
2. 实现
3. 自动化工具
4. 一些有趣的CRD/Operator
5. 参考资料
Last updated