File tree Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Expand file tree Collapse file tree 3 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 32
32
- name : secret
33
33
secret :
34
34
secretName : {{ template "nbviewer.fullname" . }}
35
+ items :
36
+ - key : newrelic-ini
37
+ path : newrelic.ini
35
38
{{- if .Values.extraVolumes }}
36
39
{{- .Values.extraVolumes | toYaml | trimSuffix "\n" | nindent 8 }}
37
40
{{- end }}
46
49
- name : nbviewer
47
50
image : {{ .Values.image }}
48
51
command :
52
+ {{- if .Values.nbviewer.newrelicIni }}
53
+ - newrelic-admin
54
+ - run-python
55
+ {{- else }}
49
56
- python3
57
+ {{- end }}
50
58
- " -m"
51
59
- nbviewer
52
60
- --port=5000
55
63
{{- end }}
56
64
57
65
volumeMounts :
58
- # - mountPath: /srv/nbviewer
59
- # name: files
66
+ {{- if .Values.nbviewer.newrelicIni }}
67
+ - mountPath : /etc/nbviewer/newrelic.ini
68
+ name : secret
69
+ subPath : newrelic.ini
70
+ {{- end }}
60
71
61
72
# - mountPath: /etc/nbviewer/values.json
62
73
# subPath: values.json
@@ -102,6 +113,8 @@ spec:
102
113
{{- end }}
103
114
- name : MEMCACHIER_SERVERS
104
115
value : {{ .Release.Name }}-memcached:11211
116
+ - name : NEW_RELIC_CONFIG_FILE
117
+ value : /etc/nbviewer/newrelic.ini
105
118
{{- if .Values.extraEnv }}
106
119
{{- range $key, $value := .Values.extraEnv }}
107
120
- name : {{ $key | quote }}
Original file line number Diff line number Diff line change 10
10
github-clientId : {{ .Values.github.clientId | b64enc | quote }}
11
11
github-clientSecret : {{ .Values.github.clientSecret | b64enc | quote }}
12
12
statuspage-apiKey : {{ .Values.statuspage.apiKey | b64enc | quote }}
13
+ newrelic-ini : {{ .Values.nbviewer.newrelicIni | b64enc | quote }}
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ github:
42
42
nbviewer :
43
43
baseUrl : " /"
44
44
extraArgs : []
45
+ newrelicIni : " "
45
46
46
47
memcached :
47
48
AntiAffinity : soft
You can’t perform that action at this time.
0 commit comments