容器中执行命令:
创建client和controller:https://zhuanlan.zhihu.com/p/34192361
code-generagtor:
(1)生成全部功能API server, controler,client:
(2)生成client端代码:
初步使用方法:http://www.mamicode.com/info-detail-2313039.html
https://kknews.cc/other/6586rql.html
(3)k8s三种client使用:
clientset:https://blog.csdn.net/yevvzi/article/details/52768288(k8s核心已经有的资源,使用方便,固定)
dynamicclient:https://blog.csdn.net/yevvzi/article/details/54380944(比clientset灵活,加入thirdparty的各种操作接口,比clientset稍微麻烦,需要自定义参数较多)
restclient:https://blog.csdn.net/yevvzi/article/details/54426775(各种client的底层)
经验分享:https://kknews.cc/other/6586rql.html