본문으로 건너뛰기

에이전트 삭제

쿠버네티스 에이전트 삭제​

에이전트 설치 단계에서 다운로드한 쿠버네티스 버전과 Container Runtime에 맞는 YAML 파일명을 확인하고 절차에 따라 쿠버네티스 에이전트 삭제 과정을 진행하세요.

쿠버네티스 에이전트 YAML 파일명​

DockerYAML 파일명
쿠버네티스 버전 1.16 이상whatap_kube_1.16.yaml
쿠버네티스 버전 1.16 이상(GPU 버전)whatap_kube_1.16_gpu.yaml
쿠버네티스 버전 1.16 미만whatap_kube.yaml
쿠버네티스 버전 1.16 미만(GPU 버전)whatap_kube_gpu.yaml
ContainerdYAML 파일명
쿠버네티스 버전 1.16 이상whatap_kube_containerd_1.16.yaml
쿠버네티스 버전 1.16 이상(GPU 버전)whatap_kube_containerd_1.16_gpu.yaml
쿠버네티스 버전 1.16 미만whatap_kube_containerd.yaml
쿠버네티스 버전 1.16 미만(GPU 버전)whatap_kube_containerd_gpu.yaml
CRIO YAML파일명
쿠버네티스 버전 1.16 이상whatap_kube_crio_1.16.yaml
쿠버네티스 버전 1.16 이상(GPU 버전)whatap_kube_crio_1.16_gpu.yaml
쿠버네티스 버전 1.16 미만whatap_kube_crio.yaml
쿠버네티스 버전 1.16 미만(GPU 버전)whatap_kube_crio_gpu.yaml

YAML 파일이 있을 경우​

  1. 설치 단계에서 다운로드한 YAML 파일명으로 설치된 쿠버네티스 에이전트를 삭제합니다. 다음 명령어의 표기 부분을 사용자의 YAML 파일명으로 수정 후 실행하세요.

    kubectl delete -f < 사용자의 YAML 파일명 >
  2. 쿠버네티스 에이전트 삭제가 정상적으로 완료되었을 경우 다음과 같은 메시지를 확인할 수 있습니다.

    namespace "whatap-monitoring" deleted
    serviceaccount "whatap" deleted
    clusterrole.rbac.authorization.k8s.io "whatap" deleted
    configmap "node-start-script" deleted
    clusterrolebinding.rbac.authorization.k8s.io "whatap" deleted
    daemonset.apps "whatap-node-agent" deleted
    configmap "master-start-script" deleted
    deployment.apps "whatap-master-agent" deleted
    service "whatap-master-agent" deleted

YAML 파일이 없을 경우​

주의

whatap-monitoring 네임스페이스에 직접 사용자 정의 리소스를 생성한 경우 해당 리소스도 함께 삭제됩니다.

  1. 다음 명령어를 실행해 쿠버네티스 에이전트를 삭제하세요.

    kubectl delete namespace whatap-monitoring
    kubectl delete clusterrolebinding whatap
    kubectl delete clusterrole whatap
  2. 쿠버네티스 에이전트 삭제가 정상적으로 완료되었을 경우 다음과 같은 메시지를 확인할 수 있습니다.

    namespace "whatap-monitoring" deleted
    clusterrolebinding.rbac.authorization.k8s.io "whatap" deleted
    clusterrole.rbac.authorization.k8s.io "whatap" deleted

Helm 차트 기준 설치 시 에이전트 삭제​

다음 명령어를 실행해 와탭 쿠버네티스 에이전트 애플리케이션을 삭제하세요.

# release 삭제
helm uninstall whatap-kube-agent