7.2. Grafana 인증서 구성
cephadm 은 ceph 키/값 저장소에 정의된 인증서를 사용하여 Grafana를 배포합니다. 인증서를 지정하지 않으면 cephadm 은 Grafana 서비스를 배포하는 동안 자체 서명된 인증서를 생성합니다.
ceph config-key set 명령을 사용하여 사용자 정의 인증서를 구성할 수 있습니다.
사전 요구 사항
- 실행 중인 Red Hat Ceph Storage 클러스터.
프로세스
cephadm쉘에 로그인합니다.예제
[root@host01 ~]# cephadm shellGrafana에 대한 사용자 정의 인증서를 구성합니다.
예제
[ceph: root@host01 /]# ceph config-key set mgr/cephadm/grafana_key -i $PWD/key.pem [ceph: root@host01 /]# ceph config-key set mgr/cephadm/grafana_crt -i $PWD/certificate.pemGrafana가 이미 배포된 경우
reconfig를 실행하여 구성을 업데이트합니다.예제
[ceph: root@host01 /]# ceph orch reconfig grafana새 인증서를 추가할 때마다 다음 단계를 따르십시오.
새 디렉터리 만들기
예제
[root@host01 ~]# mkdir /root/internalca [root@host01 ~]# cd /root/internalca키를 생성합니다.
예제
[root@host01 internalca]# openssl ecparam -genkey -name secp384r1 -out $(date +%F).key키를 확인합니다.
예제
[root@host01 internalca]# openssl ec -text -in $(date +%F).key | less요청 확인:
예제
[root@host01 internalca]# umask 077; openssl req -config openssl-san.cnf -new -sha256 -key $(date +%F).key -out $(date +%F).csr서명을 위해 보내기 전에 요청을 검토합니다.
예제
[root@host01 internalca]# openssl req -text -in $(date +%F).csr | lessCA 서명으로 다음을 수행합니다.
예제
[root@host01 internalca]# openssl ca -extensions v3_req -in $(date +%F).csr -out $(date +%F).crt -extfile openssl-san.cnf서명된 인증서를 확인합니다.
예제
[root@host01 internalca]# openssl x509 -text -in $(date +%F).crt -noout | less