전자책 출간 알림 [마이크로서비스패턴 쉽게 개발하기]

티스토리 뷰

Agile&DevOps/CI, CD 툴 설치

sonarqube 설치

Happy@Cloud 2019. 9. 12. 13:02

사전준비

nfs dynamic provisioning

happycloud-lee.tistory.com/178?category=832243

 

ㅇ helm repository를 추가합니다.

$ helm repo add oteemocharts https://oteemo.github.io/charts

ㅇ helm chart를 다운로드

$ mkdir ~/install/sonarqube && cd ~/install/sonarqube

$ helm search repo sonarqube

$ helm inspect values oteemocharts/sonarqube > sonarqube.yaml

ㅇ values.yaml 수정
$ vi sonarqube.yaml

아래 항목의 값을 적절하게 변경합니다.

- storageClass는 kubectl get sc로 알 수 있습니다.

- ingress의 hostname은 DNS가 없는 경우 wildcard DNS형식을 사용합니다. {host}.{node ip}.nip.io

node ip는 cluster의 아무 node의 ip를 지정하면 됩니다.

replicaCount: 1

ingress:
  enabled: true
  hosts:
    - name: sonar.169.56.84.37.nip.io
      path: /
      pathType: Prefix
      
persistence:
  enabled: true
  storageClass: nfs-standard
  accessMode: ReadWriteOnce
  size: 10Gi

postgresql:
  persistence:
    enabled: true
    size: 10Gi
    storageClass: nfs-standard

* replicas는 1로 하십시오. 2개 이상할때 에러가 나는데 이건 나중에 봐야할것 같습니다. 

ㅇ namespace 생성 및 이동

$ kubectl create ns sonarqube

$ kubens sonarqube

ㅇ 설치테스트
$ helm install sonar -f sonarqube.yaml oteemocharts/sonarqube --dry-run

ㅇ 설치
$ helm install sonar -f sonarqube.yaml oteemocharts/sonarqube

ㅇ 확인
ingress 주소로 웹브라우저에서 접근하고,  id는 admin, 암호 admin으로 로그인합니다. 

'Agile&DevOps > CI, CD 툴 설치' 카테고리의 다른 글

Nexus 설치 및 구성  (0) 2020.06.12
Private image registry 설치  (0) 2019.09.12
Jenkins 설치  (0) 2019.09.12
gitlab 설치  (0) 2019.09.12
NFS서버 만들기  (0) 2019.09.12
댓글

전자책 출간 알림 [마이크로서비스패턴 쉽게 개발하기]