Skip to content

Instantly share code, notes, and snippets.

@mjudeikis
Last active May 30, 2017 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mjudeikis/8143cfc9f76b573af7136585ba7428df to your computer and use it in GitHub Desktop.
Save mjudeikis/8143cfc9f76b573af7136585ba7428df to your computer and use it in GitHub Desktop.
#sidecar container, which provides agent binaries
- image: mangirdas/newrelic-sidecar:latest
name: newrelic
volumeMounts:
#shared volume space betwean 2 containers.
- mountPath: /newrelic
name: newrelic-volume
#mounting agent configuration to the sidecar
- mountPath: /newrelic-config
name: newrelic-config
- image: ${APPLICATION_NAME}:latest
imagePullPolicy: Always
name: ${APPLICATION_NAME}
env:
- name: NEW_RELIC_APP_NAME
value: ${APPLICATION_NAME}
#set API key from secret as environment variable
- name: NEW_RELIC_LICENSE_KEY
valueFrom:
secretKeyRef:
name: newrelic-apikey
key: apikey
- name: CATALINA_OPTS_APPEND
value: ${CATALINA_OPTS_APPEND}
#in New Relic case this is mandatory. Otherwise agent will log to file and running container will start growing.
- name: NEW_RELIC_LOG
value: "STDOUT"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment