1.7. Operator 업그레이드 문제 해결
이 섹션의 지침에 따라 RHACS Operator의 업그레이드 관련 문제를 조사하고 해결합니다.
1.7.1. Central DB를 예약할 수 없습니다
여기에서 지침에 따라 업그레이드 중에 실패한 중앙 DB Pod의 문제를 해결합니다.
central-db
Pod의 상태를 확인합니다.$ oc -n <namespace> get pod -l app=central-db 1
- 1
- Kubernetes를 사용하는 경우
oc
대신kubectl
을 입력합니다.
Pod 상태가
Pending
이면 describe 명령을 사용하여 자세한 정보를 가져옵니다.$ oc -n <namespace> describe po/<central-db-pod-name> 1
- 1
- Kubernetes를 사용하는 경우
oc
대신kubectl
을 입력합니다.
FailedScheduling
경고 메시지가 표시될 수 있습니다.Type Reason Age From Message ---- ------ ---- ---- ------- Warning FailedScheduling 54s default-scheduler 0/7 nodes are available: 1 Insufficient memory, 3 node(s) had untolerated taint {node-role.kubernetes.io/master: }, 4 Insufficient cpu. preemption: 0/7 nodes are available: 3 Preemption is not helpful for scheduling, 4 No preemption victims found for incoming pod.
이 경고 메시지는 예약된 노드에 Pod의 리소스 요구 사항을 수용하기 위한 메모리가 충분하지 않음을 나타냅니다. 소규모 환경이 있는 경우 노드에서 리소스를 늘리거나 데이터베이스를 지원할 수 있는 더 큰 노드를 추가하는 것이 좋습니다.
그렇지 않으면 중앙
db
리소스의 사용자 정의 리소스에서 central
-db그러나 권장 최소값보다 적은 리소스로 중앙을 실행하면 RHACS의 성능이 저하될 수 있습니다.
1.7.2. 중앙 또는 보안 클러스터 배포 실패
RHACS Operator의 경우:
- 중앙 또는 보안 클러스터를 배포하지 못했습니다.
- 실제 리소스에 CR 변경 사항을 적용하지 못했습니다.
문제를 찾으려면 사용자 정의 리소스 조건을 확인해야 합니다.
조건 출력에서 구성 오류를 확인할 수 있습니다.
출력 예
Conditions: Last Transition Time: 2023-04-19T10:49:57Z Status: False Type: Deployed Last Transition Time: 2023-04-19T10:49:57Z Status: True Type: Initialized Last Transition Time: 2023-04-19T10:59:10Z Message: Deployment.apps "central" is invalid: spec.template.spec.containers[0].resources.requests: Invalid value: "50": must be less than or equal to cpu limit Reason: ReconcileError Status: True Type: Irreconcilable Last Transition Time: 2023-04-19T10:49:57Z Message: No proxy configuration is desired Reason: NoProxyConfig Status: False Type: ProxyConfigFailed Last Transition Time: 2023-04-19T10:49:57Z Message: Deployment.apps "central" is invalid: spec.template.spec.containers[0].resources.requests: Invalid value: "50": must be less than or equal to cpu limit Reason: InstallError Status: True Type: ReleaseFailed
또한 RHACS Pod 로그를 보고 문제에 대한 자세한 정보를 확인할 수 있습니다. 다음 명령을 실행하여 로그를 확인합니다.
oc -n rhacs-operator logs deploy/rhacs-operator-controller-manager manager 1
- 1
- Kubernetes를 사용하는 경우
oc
대신kubectl
을 입력합니다.