1.2.4. 모니터링 스택에서 TLS 보안 및 순환
통신 보안을 유지하기 위해 AWS 모니터링 스택의 Red Hat OpenShift Service에서 TLS 프로필 및 인증서 교체가 작동하는 방법을 알아보십시오.
- 모니터링 구성 요소에 대한 TLS 보안 프로필
-
모니터링 스택의 모든 구성 요소는 클러스터 관리자가 중앙에서 구성하는 TLS 보안 프로필 설정을 사용합니다. 모니터링 스택 구성 요소는 AWS
apiservers.config.openshift.io/cluster리소스의 글로벌 Red Hat OpenShift Service의tlsSecurityProfile필드에 이미 존재하는 TLS 보안 프로필 설정을 사용합니다. - TLS 인증서 교체 및 자동 재시작
Cluster Monitoring Operator는 모니터링 구성 요소의 내부 TLS 인증서 라이프사이클을 관리합니다. 이러한 인증서는 모니터링 구성 요소 간의 내부 통신을 보호합니다.
인증서를 순환하는 동안 CMO는 보안 및 구성 맵을 업데이트하여 영향을 받는 Pod를 자동으로 재시작합니다. 이는 예상되는 동작이며 Pod가 자동으로 복구됩니다.
다음 예제에서는 인증서 교체 중에 발생하는 이벤트를 보여줍니다.
$ oc get events -n openshift-monitoring LAST SEEN TYPE REASON OBJECT MESSAGE 2h39m Normal SecretUpdated deployment/cluster-monitoring-operator Updated Secret/grpc-tls -n openshift-monitoring because it changed 2h39m Normal SecretCreated deployment/cluster-monitoring-operator Created Secret/prometheus-user-workload-grpc-tls -n openshift-user-workload-monitoring because it was missing 2h39m Normal SecretCreated deployment/cluster-monitoring-operator Created Secret/thanos-querier-grpc-tls -n openshift-monitoring because it was missing 2h39m Normal SecretCreated deployment/cluster-monitoring-operator Created Secret/thanos-ruler-grpc-tls -n openshift-user-workload-monitoring because it was missing 2h39m Normal SecretCreated deployment/cluster-monitoring-operator Created Secret/prometheus-k8s-grpc-tls -n openshift-monitoring because it was missing 2h38m Warning FailedMount pod/prometheus-k8s-0 MountVolume.SetUp failed for volume "secret-grpc-tls" : secret "prometheus-k8s-grpc-tls" not found 2h39m Normal Created pod/prometheus-k8s-0 Created container kube-rbac-proxy-thanos 2h39m Normal Started pod/prometheus-k8s-0 Started container kube-rbac-proxy-thanos 2h39m Normal SuccessfulDelete statefulset/prometheus-k8s delete Pod prometheus-k8s-0 in StatefulSet prometheus-k8s successful 2h39m Normal SuccessfulCreate statefulset/prometheus-k8s create Pod prometheus-k8s-0 in StatefulSet prometheus-k8s successful