K8s Terminating Namespace 편집하기

경고: 로그인하지 않았습니다. 편집을 하면 IP 주소가 공개되게 됩니다. 로그인하거나 계정을 생성하면 편집자가 사용자 이름으로 기록되고, 다른 장점도 있습니다.

편집을 취소할 수 있습니다. 이 편집을 되돌리려면 아래의 바뀐 내용을 확인한 후 게시해주세요.

최신판 당신의 편집
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를 제거했더니 삭제되었다.


==같이 보기==
==같이 보기==

제타위키에서의 모든 기여는 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 라이선스로 배포된다는 점을 유의해 주세요(자세한 내용에 대해서는 제타위키:저작권 문서를 읽어주세요). 만약 여기에 동의하지 않는다면 문서를 저장하지 말아 주세요.
또한, 직접 작성했거나 퍼블릭 도메인과 같은 자유 문서에서 가져왔다는 것을 보증해야 합니다. 저작권이 있는 내용을 허가 없이 저장하지 마세요!

취소 편집 도움말 (새 창에서 열림)