From a29718c7174efa9f29395ca708e982fab7b7896a Mon Sep 17 00:00:00 2001 From: Bryan Parry Date: Sat, 24 Mar 2018 17:40:55 -0400 Subject: [PATCH] Add pvc for sonarqube plugins directory --- sonarqube-template.yaml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/sonarqube-template.yaml b/sonarqube-template.yaml index e05385a..299bdba 100644 --- a/sonarqube-template.yaml +++ b/sonarqube-template.yaml @@ -118,6 +118,8 @@ objects: volumeMounts: - mountPath: /opt/sonarqube/data name: sonarqube-data + - mountPath: /opt/sonarqube/extensions/plugins + name: sonarqube-plugins dnsPolicy: ClusterFirst restartPolicy: Always securityContext: {} @@ -126,6 +128,9 @@ objects: - name: sonarqube-data persistentVolumeClaim: claimName: sonarqube-data + - name: sonarqube-plugins + persistentVolumeClaim: + claimName: sonarqube-plugins triggers: - type: ConfigChange - imageChangeParams: @@ -146,6 +151,16 @@ objects: resources: requests: storage: ${SONAR_VOLUME_CAPACITY} +- apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + name: sonarqube-plugins + spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: ${SONAR_VOLUME_CAPACITY} parameters: - displayName: SonarQube version value: "6.7" @@ -159,4 +174,4 @@ parameters: - displayName: SonarQube Max Memory name: SONAR_MAX_MEMORY required: true - value: 2Gi \ No newline at end of file + value: 2Gi