Last active
May 30, 2017 17:37
-
-
Save mjudeikis/8143cfc9f76b573af7136585ba7428df to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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