NewRelic setup uisng Sonarqube helm deployment

Sonarqube is up in our AKS Cluster
Now we want setup the NewRelic using the sonarqube lts helmcharts
I need a below option to set the NewRelic
-Option to download the jar(artifacts) before the container starts
-to set the Environment Variables
-Secret
-Java_opts

Please suggest which section i can use in the soanrqube lts helm charts

Hi,

It’s not clear to me what you’re trying to accomplish. You want New Relic to launch SonarQube? Is that it?

 
Ann

Thanks for reply @ganncamp
Newrelic is monitoring for SonarQube Pods
I just want to setup the newrelic as part of sonarqube helm deployment
Below option required to setup the newrelic.I just looking for option to download artifacts(newrelic.jar).I did not find the option in values.yaml other than in extrainitcontianers.

I need a below option to set the NewRelic
-Option to download the jar(artifacts)
-Secrets
-Java_opts

Please suggest which section i can use in the soanrqube lts helm charts

Hi @pjaggu1,

Thanks for your interest in using our helm chart and combining it with a monitoring tool :slight_smile: Please let me give you some hints on how to use our chart for your goal.

You might want to leverage the extraInitContainers to define a container that downloads the newrelic jar before sonarqube gets deployed.

The extraInitContainer should be defined in this form. Example:

- name: myapp-container
   image: busybox
   command: ['sh', '-c', 'echo Hello && sleep 3600']

You can inject an existing secret using extraConfig.secrets

You can set java options using jvmOpts.

Please also note that everything I’m suggesting is available on our helm chart’s description.

Carmine

1 Like

Thank for you reply
For Secrets I am not able to use extraConfig.secrets becasue this option not work for extrainit containers .Hopefully this option for sonarqube configuration secrets.
Could please suggest any other option for secrets which i can used in extrainit contianers.

Hey @pjaggu1,

you might want to inject the secret into your container directly. Could you please try using something like this?

- name: myapp-container
  image: busybox
  command: ['sh', '-c', 'echo Hello && sleep 3600']
  envFrom:
     - secretRef:
          name: YOUR_SECRET_NAME