Hey all,
I’m running sonarqube and postgres images in a kubernetes environment. Each of the 2 deployments have a volume attached to it. However, when if the deployment is deleted, all my sonarqube config is lost on restart. I’ve checked logs for both sonarqube and postgres, and the 2 of them just have INFO type logs and no errors. If the deployment doesn’t go down, sonarqube works as expected. But every time it does go down I have to configure SAML config and Quality Profiles all over again. Has anyone experienced this issue?
Deployment Image Version Info:
- SonarQube: sonarqube:8.9.1-community
- Postgres: bitnami/postgresql
PV & PVC Info:
- Status: Bound
- Reclaim Policy: Retain
Volume Config
containers:
- name: sonarqube
image: sonarqube:8.9.1-community
imagePullPolicy: IfNotPresent
ports:
- containerPort: 9000
envFrom:
- configMapRef:
name: sonar-config
volumeMounts:
- name: sonarqube-pv
mountPath: "/opt/sonarqube/data/"
subPath: data
- name: sonarqube-pv
mountPath: "/opt/sonarqube/extensions/"
subPath: extensions
resources:
requests:
memory: "1024Mi"
limits:
memory: "2048Mi"
volumes:
- name: sonarqube-pv
persistentVolumeClaim:
claimName: sonarqube-pvc