写一个crd资源
1 | cat custom-res-def.yaml |
查看crd定义
1 | kubectl get crd | grep libin |
创建crd资源对象
1 | cat custom-res-object.yaml |
查看创建的对象
1 | kubectl get libin -n ops |
1 | cat custom-res-def.yaml |
1 | kubectl get crd | grep libin |
1 | cat custom-res-object.yaml |
1 | kubectl get libin -n ops |