최신판 |
당신의 편집 |
1번째 줄: |
1번째 줄: |
| ==개요== | | ==개요== |
| ;k8s Terminating Namespace | | ;k8s Terminating namespace |
| * 일반적으로는 [[K8s Terminating namespace 강제 삭제]]로 삭제된다. | | * 일반적으로는 [[K8s Terminating namespace 강제 삭제]]로 삭제된다. |
| ----
| |
| * 아래 예시는 그렇게 해도 삭제가 안되는 사례
| |
| <syntaxhighlight lang='console'>
| |
| $ kubectl get ns | grep Terminating
| |
| dind Terminating 581d
| |
| </syntaxhighlight>
| |
| <syntaxhighlight lang='console'>
| |
| $ kubectl describe ns dind
| |
| Name: dind
| |
| Labels: kubernetes.io/metadata.name=dind
| |
| Annotations: cattle.io/status:
| |
| {"Conditions":[{"Type":"ResourceQuotaInit","Status":"True","Message":"","LastUpdateTime":"2024-02-19T14:12:18Z"},{"Type":"InitialRolesPopu...
| |
| lifecycle.cattle.io/create.namespace-auth: true
| |
| Status: Terminating
| |
| Conditions:
| |
| Type Status LastTransitionTime Reason Message
| |
| ---- ------ ------------------ ------ -------
| |
| NamespaceDeletionDiscoveryFailure False Sat, 16 Mar 2024 10:56:46 +0000 ResourcesDiscovered All resources successfully discovered
| |
| NamespaceDeletionGroupVersionParsingFailure False Sat, 16 Mar 2024 10:56:46 +0000 ParsedGroupVersions All legacy kube types successfully parsed
| |
| NamespaceDeletionContentFailure False Sat, 16 Mar 2024 10:56:46 +0000 ContentDeleted All content successfully deleted, may be waiting on finalization
| |
| NamespaceContentRemaining False Sat, 16 Mar 2024 10:56:51 +0000 ContentRemoved All content successfully removed
| |
| NamespaceFinalizersRemaining False Sat, 16 Mar 2024 10:56:46 +0000 ContentHasNoFinalizers All content-preserving finalizers finished
| |
|
| |
| No resource quota.
| |
|
| |
| No LimitRange resource.
| |
| </syntaxhighlight>
| |
| <syntaxhighlight lang='console'>
| |
| $ kubectl get ns dind -oyaml
| |
| apiVersion: v1
| |
| kind: Namespace
| |
| metadata:
| |
| annotations:
| |
| cattle.io/status: '{"Conditions":[{"Type":"ResourceQuotaInit","Status":"True","Message":"","LastUpdateTime":"2024-02-19T14:12:18Z"},{"Type":"InitialRolesPopulated","Status":"True","Message":"","LastUpdateTime":"2024-02-19T14:12:18Z"}]}'
| |
| lifecycle.cattle.io/create.namespace-auth: "true"
| |
| creationTimestamp: "2022-08-20T11:28:15Z"
| |
| deletionTimestamp: "2024-03-16T10:56:40Z"
| |
| finalizers:
| |
| - controller.cattle.io/namespace-auth ###
| |
| ...
| |
| </syntaxhighlight>
| |
| :→ kubectl edit ns 명령어로 finalizer를 제거했더니 삭제되었다.
| |
|
| |
|
| ==같이 보기== | | ==같이 보기== |