7.2. Grafana 인증서 구성

cephadm 은 ceph 키/값 저장소에 정의된 인증서를 사용하여 Grafana를 배포합니다. 인증서를 지정하지 않으면 cephadm 은 Grafana 서비스를 배포하는 동안 자체 서명된 인증서를 생성합니다.

ceph config-key set 명령을 사용하여 사용자 정의 인증서를 구성할 수 있습니다.

사전 요구 사항

  • 실행 중인 Red Hat Ceph Storage 클러스터.

절차

  1. cephadm 쉘에 로그인합니다.

    예제

    [root@host01 ~]# cephadm shell

  2. Grafana에 대한 사용자 정의 인증서를 구성합니다.

    예제

    [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.pem

  3. Grafana가 이미 배포된 경우 reconfig 를 실행하여 구성을 업데이트합니다.

    예제

    [ceph: root@host01 /]# ceph orch reconfig grafana

  4. 새 인증서를 추가할 때마다 다음 단계를 따르십시오.

    1. 새 디렉터리 만들기

      예제

      [root@host01 ~]# mkdir /root/internalca
      [root@host01 ~]# cd /root/internalca

    2. 키를 생성합니다.

      예제

      [root@host01 internalca]# openssl ecparam -genkey -name secp384r1 -out $(date +%F).key

    3. 키를 확인합니다.

      예제

      [root@host01 internalca]# openssl ec -text -in $(date +%F).key | less

    4. 요청 확인:

      예제

      [root@host01 internalca]# umask 077; openssl req -config openssl-san.cnf -new -sha256 -key $(date +%F).key -out $(date +%F).csr

    5. 서명을 위해 보내기 전에 요청을 검토합니다.

      예제

      [root@host01 internalca]# openssl req -text -in $(date +%F).csr | less

    6. CA 서명으로 다음을 수행합니다.

      예제

      [root@host01 internalca]# openssl ca -extensions v3_req -in $(date +%F).csr -out $(date +%F).crt -extfile openssl-san.cnf

    7. 서명된 인증서를 확인합니다.

      예제

      [root@host01 internalca]# openssl x509 -text -in $(date +%F).crt -noout | less

추가 리소스