최신판 |
당신의 편집 |
25번째 줄: |
25번째 줄: |
| </syntaxhighlight> | | </syntaxhighlight> |
|
| |
|
| ==방법 1: 인스턴스 자동 삭제== | | ==방법 1: 수동 == |
| * CRD 삭제 명령어 생성
| |
| <syntaxhighlight lang='console'>
| |
| $ kubectl get crds -oname | grep cluster.x-k8s.io | sed 's|.*/||' | xargs -n1 echo kubectl delete crd --cascade=foreground
| |
| kubectl delete crd --cascade=foreground addonproviders.operator.cluster.x-k8s.io
| |
| kubectl delete crd --cascade=foreground bootstrapproviders.operator.cluster.x-k8s.io
| |
| kubectl delete crd --cascade=foreground clusterclasses.cluster.x-k8s.io
| |
| ...
| |
| kubectl delete crd --cascade=foreground machinepools.cluster.x-k8s.io
| |
| kubectl delete crd --cascade=foreground machines.cluster.x-k8s.io
| |
| kubectl delete crd --cascade=foreground machinesets.cluster.x-k8s.io
| |
| </syntaxhighlight>
| |
| * CRD 삭제 명령어 실행
| |
| <syntaxhighlight lang='console'>
| |
| $ kubectl delete crd --cascade=foreground addonproviders.operator.cluster.x-k8s.io
| |
| customresourcedefinition.apiextensions.k8s.io "addonproviders.operator.cluster.x-k8s.io" deleted
| |
| ...
| |
| $ kubectl delete crd --cascade=foreground machinepools.cluster.x-k8s.io
| |
| customresourcedefinition.apiextensions.k8s.io "machinepools.cluster.x-k8s.io" deleted
| |
| $ kubectl delete crd --cascade=foreground machinesets.cluster.x-k8s.io
| |
| customresourcedefinition.apiextensions.k8s.io "machinesets.cluster.x-k8s.io" deleted
| |
| </syntaxhighlight>
| |
| | |
| ==방법 2: 인스턴스 수동 삭제==
| |
| * CRD 인스턴스 삭제 명령어 생성 | | * CRD 인스턴스 삭제 명령어 생성 |
| <syntaxhighlight lang='console'> | | <syntaxhighlight lang='console'> |