Open VioletHynes opened 4 years ago
Is this a bug or am I missing something dumb here? I don't see how you can deploy this chart as-is.
@AndrewHynes This might be resolved now via this (in values.yaml):
# Set security context for sonarqube pod
securityContext:
fsGroup: 1000
# Set security context for sonarqube container
containerSecurityContext:
# Sonarqube dockerfile creates sonarqube user as UID and GID 1000
runAsUser: 1000
initContainers:
# We allow the init containers to have a separate security context declaration because
# the initContainer may not require the same as SonarQube.
# securityContext: {}
initSysctl:
securityContext:
privileged: true
Please see if this resolves your issue.
Currently, I have an issue with deploying this chart that I'm not sure how to resolve. If I use the following values:
Then it fails to run chmod-volume-mounts:
If I use the following, instead:
Then chmod-volume-mounts runs fine, but sonarqube fails to start as ElasticSearch cannot be ran as root. Ideally, I'd be able to run chmod-volume-mounts as root, and sonarqube as the service account.
Given this information, I'm not sure how anybody has got this chart running, so maybe I'm just doing something wrong? I am using persistence.enabled = true, if that counts for anything. Looking for advice/a fix.
Results of
kubectl version
here: