ci: add scout container to celery pod (#7354)

* ci: Add scout container to celery pod

* ci: Refactor scoutapm settings in values.yaml
This commit is contained in:
Jennifer Richards 2024-04-23 14:59:45 -03:00 committed by Nicolas Giard
parent 6ccde89a68
commit 26f2306316
3 changed files with 23 additions and 9 deletions

View file

@ -27,6 +27,17 @@ spec:
securityContext: securityContext:
{{- toYaml $podValues.podSecurityContext | nindent 8 }} {{- toYaml $podValues.podSecurityContext | nindent 8 }}
containers: containers:
{{- if .Values.scoutapm }}
- name: "scoutapm"
image: "{{ .Values.scoutapm.image.repository }}:{{ default "latest" .Values.scoutapm.image.tag }}"
imagePullPolicy: {{ default "IfNotPresent" .Values.scoutapm.image.imagePullPolicy }}
livenessProbe:
exec:
command:
- "sh"
- "-c"
- "./core-agent probe --tcp 0.0.0.0:6590 | grep -q 'Agent found'"
{{- end }}
- name: {{ .Chart.Name }} - name: {{ .Chart.Name }}
securityContext: securityContext:
{{- toYaml $podValues.securityContext | nindent 12 }} {{- toYaml $podValues.securityContext | nindent 12 }}

View file

@ -27,10 +27,10 @@ spec:
securityContext: securityContext:
{{- toYaml $podValues.podSecurityContext | nindent 8 }} {{- toYaml $podValues.podSecurityContext | nindent 8 }}
containers: containers:
{{- if $podValues.scoutapm }} {{- if .Values.scoutapm }}
- name: "scoutapm" - name: "scoutapm"
image: "{{ $podValues.scoutapm.image.repository }}:{{ default "latest" $podValues.scoutapm.image.tag }}" image: "{{ .Values.scoutapm.image.repository }}:{{ default "latest" .Values.scoutapm.image.tag }}"
imagePullPolicy: {{ default "IfNotPresent" $podValues.scoutapm.image.imagePullPolicy }} imagePullPolicy: {{ default "IfNotPresent" .Values.scoutapm.image.imagePullPolicy }}
livenessProbe: livenessProbe:
exec: exec:
command: command:

View file

@ -166,12 +166,6 @@ datatracker:
nodeSelector: {} nodeSelector: {}
affinity: {} affinity: {}
# Set this to enable a Scout APM Core Agent sidecar
scoutapm:
image:
repository: "scoutapp/scoutapm"
tag: "version-1.4.0"
# ------------------------------------------------------------- # -------------------------------------------------------------
# CELERY # CELERY
@ -567,6 +561,15 @@ memcached:
affinity: {} affinity: {}
# -------------------------------------------------------------
# SCOUT APM SETTINGS
# -------------------------------------------------------------
# Set this to enable a Scout APM Core Agent sidecar
scoutapm:
image:
repository: "scoutapp/scoutapm"
tag: "version-1.4.0"
# ------------------------------------------------------------- # -------------------------------------------------------------
# PERSISTENT VOLUMES # PERSISTENT VOLUMES
# ------------------------------------------------------------- # -------------------------------------------------------------