설치 문제 해결
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>