1 개요[ | ]
- kops delete cluster
Console
Copy
user01@localhost:~$ kops get cluster
NAME CLOUD ZONES
c1.example.com aws ap-northeast-2c
Console
Copy
user01@localhost:~$ kops delete cluster
TYPE NAME ID
autoscaling-config master-ap-northeast-2c.masters.c1.example.com-20190804144311 master-ap-northeast-2c.masters.c1.example.com-20190804144311
autoscaling-config master-ap-northeast-2c.masters.c1.example.com-20190922103557 master-ap-northeast-2c.masters.c1.example.com-20190922103557
autoscaling-config master-ap-northeast-2c.masters.c1.example.com-20191013081652 master-ap-northeast-2c.masters.c1.example.com-20191013081652
autoscaling-config nodes.c1.example.com-20190616113919 nodes.c1.example.com-20190616113919
autoscaling-config nodes.c1.example.com-20190922103557 nodes.c1.example.com-20190922103557
autoscaling-config nodes.c1.example.com-20191013081652 nodes.c1.example.com-20191013081652
autoscaling-group master-ap-northeast-2c.masters.c1.example.com master-ap-northeast-2c.masters.c1.example.com
autoscaling-group nodes.c1.example.com nodes.c1.example.com
iam-instance-profile masters.c1.example.com masters.c1.example.com
iam-instance-profile nodes.c1.example.com nodes.c1.example.com
iam-role masters.c1.example.com masters.c1.example.com
iam-role nodes.c1.example.com nodes.c1.example.com
instance master-ap-northeast-2c.masters.c1.example.com i-0ac1bd144ea7f71d8
instance nodes.c1.example.com i-033fcee6a90088cb0
instance nodes.c1.example.com i-05aaed0d2ba492558
keypair kubernetes.c1.example.com-9a:36:14:56:5c:11:a5:05:dd:a5:1c:88:c4:2e:a7:06 kubernetes.c1.example.com-9a:36:14:56:5c:11:a5:05:dd:a5:1c:88:c4:2e:a7:06
keypair kubernetes.c1.example.com-d2:78:4e:76:8b:52:ec:f6:c5:0e:dc:ea:49:19:87:40 kubernetes.c1.example.com-d2:78:4e:76:8b:52:ec:f6:c5:0e:dc:ea:49:19:87:40
route-table c1.example.com rtb-09673db4d9179a7c2
route53-record api.c1.example.com. Z16UHPJRCA8X94/api.c1.example.com.
route53-record api.internal.c1.example.com. Z16UHPJRCA8X94/api.internal.c1.example.com.
security-group masters.c1.example.com sg-0f6e384d42aa97592
security-group nodes.c1.example.com sg-039caaa22b1e33777
subnet ap-northeast-2c.c1.example.com subnet-043c8ca95e432d3f0
volume c.etcd-events.c1.example.com vol-00d228b3a6b6f9c97
volume c.etcd-main.c1.example.com vol-0d80d813132d15b9d
volume c1.example.com-dynamic-pvc-97281273-e1d6-11e9-b48a-0ad11df60f06 vol-0d57c11bc89dcfc25
Must specify --yes to delete cluster
Console
Copy
user01@localhost:~$ kops delete cluster --yes
TYPE NAME ID
autoscaling-config master-ap-northeast-2c.masters.c1.example.com-20190804144311 master-ap-northeast-2c.masters.c1.example.com-20190804144311
autoscaling-config master-ap-northeast-2c.masters.c1.example.com-20190922103557 master-ap-northeast-2c.masters.c1.example.com-20190922103557
autoscaling-config master-ap-northeast-2c.masters.c1.example.com-20191013081652 master-ap-northeast-2c.masters.c1.example.com-20191013081652
autoscaling-config nodes.c1.example.com-20190616113919 nodes.c1.example.com-20190616113919
autoscaling-config nodes.c1.example.com-20190922103557 nodes.c1.example.com-20190922103557
autoscaling-config nodes.c1.example.com-20191013081652 nodes.c1.example.com-20191013081652
autoscaling-group master-ap-northeast-2c.masters.c1.example.com master-ap-northeast-2c.masters.c1.example.com
autoscaling-group nodes.c1.example.com nodes.c1.example.com
iam-instance-profile masters.c1.example.com masters.c1.example.com
iam-instance-profile nodes.c1.example.com nodes.c1.example.com
iam-role masters.c1.example.com masters.c1.example.com
iam-role nodes.c1.example.com nodes.c1.example.com
instance master-ap-northeast-2c.masters.c1.example.com i-0ac1bd144ea7f71d8
instance nodes.c1.example.com i-033fcee6a90088cb0
instance nodes.c1.example.com i-05aaed0d2ba492558
keypair kubernetes.c1.example.com-9a:36:14:56:5c:11:a5:05:dd:a5:1c:88:c4:2e:a7:06 kubernetes.c1.example.com-9a:36:14:56:5c:11:a5:05:dd:a5:1c:88:c4:2e:a7:06
keypair kubernetes.c1.example.com-d2:78:4e:76:8b:52:ec:f6:c5:0e:dc:ea:49:19:87:40 kubernetes.c1.example.com-d2:78:4e:76:8b:52:ec:f6:c5:0e:dc:ea:49:19:87:40
route-table c1.example.com rtb-09673db4d9179a7c2
route53-record api.c1.example.com. Z16UHPJRCA8X94/api.c1.example.com.
route53-record api.internal.c1.example.com. Z16UHPJRCA8X94/api.internal.c1.example.com.
security-group masters.c1.example.com sg-0f6e384d42aa97592
security-group nodes.c1.example.com sg-039caaa22b1e33777
subnet ap-northeast-2c.c1.example.com subnet-043c8ca95e432d3f0
volume c.etcd-events.c1.example.com vol-00d228b3a6b6f9c97
volume c.etcd-main.c1.example.com vol-0d80d813132d15b9d
volume c1.example.com-dynamic-pvc-97281273-e1d6-11e9-b48a-0ad11df60f06 vol-0d57c11bc89dcfc25
keypair:kubernetes.c1.example.com-d2:78:4e:76:8b:52:ec:f6:c5:0e:dc:ea:49:19:87:40 ok
instance:i-0ac1bd144ea7f71d8 ok
keypair:kubernetes.c1.example.com-9a:36:14:56:5c:11:a5:05:dd:a5:1c:88:c4:2e:a7:06 ok
instance:i-05aaed0d2ba492558 ok
instance:i-033fcee6a90088cb0 ok
autoscaling-config:nodes.c1.example.com-20190922103557 ok
autoscaling-config:master-ap-northeast-2c.masters.c1.example.com-20190804144311 ok
autoscaling-config:master-ap-northeast-2c.masters.c1.example.com-20190922103557 ok
autoscaling-group:nodes.c1.example.com ok
autoscaling-group:master-ap-northeast-2c.masters.c1.example.com ok
autoscaling-config:nodes.c1.example.com-20190616113919 ok
route53-record:Z16UHPJRCA8X94/api.c1.example.com. ok
iam-instance-profile:masters.c1.example.com ok
iam-instance-profile:nodes.c1.example.com ok
iam-role:masters.c1.example.com ok
iam-role:nodes.c1.example.com ok
volume:vol-00d228b3a6b6f9c97 still has dependencies, will retry
volume:vol-0d80d813132d15b9d still has dependencies, will retry
subnet:subnet-043c8ca95e432d3f0 still has dependencies, will retry
volume:vol-0d57c11bc89dcfc25 still has dependencies, will retry
autoscaling-config:master-ap-northeast-2c.masters.c1.example.com-20191013081652 ok
autoscaling-config:nodes.c1.example.com-20191013081652 ok
security-group:sg-039caaa22b1e33777 still has dependencies, will retry
security-group:sg-0f6e384d42aa97592 still has dependencies, will retry
Not all resources deleted; waiting before reattempting deletion
security-group:sg-0f6e384d42aa97592
security-group:sg-039caaa22b1e33777
volume:vol-00d228b3a6b6f9c97
volume:vol-0d80d813132d15b9d
volume:vol-0d57c11bc89dcfc25
route-table:rtb-09673db4d9179a7c2
subnet:subnet-043c8ca95e432d3f0
subnet:subnet-043c8ca95e432d3f0 still has dependencies, will retry
volume:vol-0d57c11bc89dcfc25 still has dependencies, will retry
volume:vol-0d80d813132d15b9d still has dependencies, will retry
volume:vol-00d228b3a6b6f9c97 still has dependencies, will retry
security-group:sg-039caaa22b1e33777 still has dependencies, will retry
security-group:sg-0f6e384d42aa97592 still has dependencies, will retry
Not all resources deleted; waiting before reattempting deletion
volume:vol-00d228b3a6b6f9c97
volume:vol-0d80d813132d15b9d
volume:vol-0d57c11bc89dcfc25
route-table:rtb-09673db4d9179a7c2
subnet:subnet-043c8ca95e432d3f0
security-group:sg-0f6e384d42aa97592
security-group:sg-039caaa22b1e33777
... ( 삭제 확인 반복 )
security-group:sg-0f6e384d42aa97592 still has dependencies, will retry
Not all resources deleted; waiting before reattempting deletion
security-group:sg-0f6e384d42aa97592
security-group:sg-0f6e384d42aa97592 still has dependencies, will retry
Not all resources deleted; waiting before reattempting deletion
security-group:sg-0f6e384d42aa97592
security-group:sg-0f6e384d42aa97592 still has dependencies, will retry
Not all resources deleted; waiting before reattempting deletion
security-group:sg-0f6e384d42aa97592
security-group:sg-0f6e384d42aa97592 still has dependencies, will retry
Not all resources deleted; waiting before reattempting deletion
security-group:sg-0f6e384d42aa97592
not making progress deleting resources; giving up
- → 죽어도 안지워지니 kops가 포기했다. 이제 수동으로 지워야 할 듯. ( 교훈 - 손 놓고 있지 말고, 삭제를 도와주면 좋다... )
2 같이 보기[ | ]
편집자 Jmnote
로그인하시면 댓글을 쓸 수 있습니다.