설치 문제 해결
Helm 차트 기준 설치 문제 해결
이름이 whatap 다른 Helm 리포지토리가 있을 경우
| "whatap" already exists with the same configuration, skipping |
|---|
이미 동일한 이름의 다른 whatap 리포지토리가 존재할 경우 다음 명령어를 통해 기존 whatap 리포지토리 삭제 후 설치를 진행하세요.
helm repo remove whatap
이름이 whatap-monitoring인 다른 네임스페이스가 클러스터에 있을 경우
| Error: INSTALLATION FAILED: Unable to continue with install: Namespace "whatap-monitoring" in namespace "" exists and cannot be imported into the current release |
|---|
클러스터에 whatap-monitoring 네임스페이스가 존재한다면 사용자가 yaml 파일 기준으로 이미 와탭 쿠버네티스 에이전트를 설치했기 때문입니다. 이 경우 다음 명령어를 통해 기존 whatap-monitoring 네임스페이스 및 관련 리소스를 삭제하세요.
kubectl delete namespace whatap-monitoring
kubectl delete clusterrolebinding whatap
kubectl delete clusterrole whatap
clusterrole, clusterrolebinding 리소스가 이미 클러스터에 있을 경우
| Error: INSTALLATION FAILED: Unable to continue with install: ClusterRole "whatap" in namespace "" exists and cannot be imported into the current release |
|---|
클러스터에 clusterrole, clusterrolebinding 리소스가 이미 존재할 경우 다음 명령어를 통해 해당 리소스를 삭제하세요.
kubectl delete clusterrolebinding whatap
kubectl delete clusterrole whatap
whatap-monitoring 네임스페이스를 사용할 수 없는 경우
기본적으로 와탭 쿠버네티스 에이전트는 whatap-monitoring 네임스페이스에 설치됩니다. 그러나 해당 네임스페이스를 사용할 수 없거나 또는 사용자가 특정 네임스페이스를 지정해야 하는 경우, 다음 과정을 참고하여 원하는 네임스페이스에 에이전트 설치를 진행하세요.
사전 준비
-
차트 버전: whatap/kube 1.7.11 이상
다음 명령어를 통해 차트 버전을 확인하세요.
helm search repo whatap/kube --versions1.7.11 버전 미만인 경우 다음 명령어를 통해 차트 버전을 업데이트하세요.
helm repo update -
Helm 버전: Helm 3 이상
설치 과정
사용하고자 하는 네임스페이스 이름을 <namespace> 자리에 입력한 후 다음 명령어를 실행하여 에이전트를 설치하세요.
helm install whatap-kube-agent whatap/kube --create-namespace --namespace <namespace> --set namespaceOverrideEnabled=true --wait -f values.yaml
업데이트 및 삭제
-
업데이트
다음 명령어를 통해 에이전트를 업데이트하세요.
helm update whatap-kube-agent whatap/kube --namespace <namespace> --wait -
삭제
다음 명령어를 통해 에이전트를 삭제하세요.
helm uninstall whatap-kube-agent whatap/kube --namespace <namespace>
에이전트 기동 시 발생하는 문제 해결
구형 YAML 파일을 통해 와탭 쿠버네티스 모니터링 설치한 경우
| Unrecognized VM option 'UseCGroupMemoryLimitForHeap' Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit. |
|---|
2022년 8월 24일 이전에 다운로드한 설치 YAML을 통해 와탭 쿠버네티스 모니터링을 설치한 경우 노드 에이전트(whatap-node-agent) 기동 시 오류가 발생하며 기동에 실패하는 경우가 있습니다.
원인은 다음과 같습니다. 2022년 8월 24일 이전에 다운로드한 설치 YAML 파일 내 UseCGroupMemoryLimitForHeap JVM 옵션을 사용한 노드 에이전트 실행 스크립트가 포함되어 있습니다.
와탭 노드 에이전트 1.2.0 이상(2022년 11월 21일 배포) 버전부터 에이전트 내부에서 사용하는 JDK가 업그레이드 되었으며 업그레이드된 JDK 버전은 더 이상 UseCGroupMemoryLimitForHeap 옵션을 제공하지 않습니다. 2022년 8월 24일 이전에 다운로드한 YAML 파일로 와탭 쿠버네티스 모니터링을 설치한 상태로 노드 에이전트 1.2.0 이상 버전을 기동하는 경우 Unrecognized VM option 'UseCGroupMemoryLimitForHeap’ 메세지가 발생하며 기동에 실패하게 됩니다.