Skip to content

Commit 26f2306

Browse files
jennifer-richardsNGPixel
authored andcommitted
ci: add scout container to celery pod (ietf-tools#7354)
* ci: Add scout container to celery pod * ci: Refactor scoutapm settings in values.yaml
1 parent 6ccde89 commit 26f2306

3 files changed

Lines changed: 23 additions & 9 deletions

File tree

helm/templates/deployments/celery.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,17 @@ spec:
2727
securityContext:
2828
{{- toYaml $podValues.podSecurityContext | nindent 8 }}
2929
containers:
30+
{{- if .Values.scoutapm }}
31+
- name: "scoutapm"
32+
image: "{{ .Values.scoutapm.image.repository }}:{{ default "latest" .Values.scoutapm.image.tag }}"
33+
imagePullPolicy: {{ default "IfNotPresent" .Values.scoutapm.image.imagePullPolicy }}
34+
livenessProbe:
35+
exec:
36+
command:
37+
- "sh"
38+
- "-c"
39+
- "./core-agent probe --tcp 0.0.0.0:6590 | grep -q 'Agent found'"
40+
{{- end }}
3041
- name: {{ .Chart.Name }}
3142
securityContext:
3243
{{- toYaml $podValues.securityContext | nindent 12 }}

helm/templates/deployments/datatracker.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@ spec:
2727
securityContext:
2828
{{- toYaml $podValues.podSecurityContext | nindent 8 }}
2929
containers:
30-
{{- if $podValues.scoutapm }}
30+
{{- if .Values.scoutapm }}
3131
- name: "scoutapm"
32-
image: "{{ $podValues.scoutapm.image.repository }}:{{ default "latest" $podValues.scoutapm.image.tag }}"
33-
imagePullPolicy: {{ default "IfNotPresent" $podValues.scoutapm.image.imagePullPolicy }}
32+
image: "{{ .Values.scoutapm.image.repository }}:{{ default "latest" .Values.scoutapm.image.tag }}"
33+
imagePullPolicy: {{ default "IfNotPresent" .Values.scoutapm.image.imagePullPolicy }}
3434
livenessProbe:
3535
exec:
3636
command:

helm/values.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -166,12 +166,6 @@ datatracker:
166166
nodeSelector: {}
167167

168168
affinity: {}
169-
170-
# Set this to enable a Scout APM Core Agent sidecar
171-
scoutapm:
172-
image:
173-
repository: "scoutapp/scoutapm"
174-
tag: "version-1.4.0"
175169

176170
# -------------------------------------------------------------
177171
# CELERY
@@ -567,6 +561,15 @@ memcached:
567561

568562
affinity: {}
569563

564+
# -------------------------------------------------------------
565+
# SCOUT APM SETTINGS
566+
# -------------------------------------------------------------
567+
# Set this to enable a Scout APM Core Agent sidecar
568+
scoutapm:
569+
image:
570+
repository: "scoutapp/scoutapm"
571+
tag: "version-1.4.0"
572+
570573
# -------------------------------------------------------------
571574
# PERSISTENT VOLUMES
572575
# -------------------------------------------------------------

0 commit comments

Comments
 (0)