Skip to content
This repository has been archived by the owner on Jun 24, 2022. It is now read-only.

work_with_openshift #213

Closed
wants to merge 1 commit into from
Closed

work_with_openshift #213

wants to merge 1 commit into from

Conversation

namloc2001
Copy link

Hi, I've been reworking this chart to function in an OpenShift cluster. The changes look to do a number of things:

  • Auto-create SCCs for postgreSQL and SonarQube (equiv to nonroot)
  • Split the init-sysctl container into a job and provide it with serviceAccount and access to a "stripped-down" privileged SCC

I've got it working on my cluster with:

helm install <release_name> . --set serviceAccount.create=true,postgresql.serviceAccount.enabled=true,OpenShift.enabled=true,OpenShift.createSCC=true,initSysctl.serviceAccount.create=true

This uses a key in values.yaml (OpenShift.enabled) to assert whether OpenShift SCC resources need to be created.

I've also:

  • exposed some additional postgreSQL keys in values.yaml
  • added an initContainer to monitor postgreSQL is up before starting SonarQube.

Just wanted to see if there is any interest in this, and any validation you'd like to apply. My only concern at the moment is that the job to perform the systctl changes will happen once on the worker node this is deployed to, but then wouldn't happen again if the sonarqube pod was recreated on a new worker node. I think a daemonset could be used to apply the sysctl command to all/specific labelled worker nodes.

@namloc2001 namloc2001 closed this Nov 13, 2020
@namloc2001
Copy link
Author

Please see #214 instead.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants