diff --git a/helm/templates/deployments/celery.yaml b/helm/templates/deployments/celery.yaml index 1fb176009..d697fcdc9 100644 --- a/helm/templates/deployments/celery.yaml +++ b/helm/templates/deployments/celery.yaml @@ -27,6 +27,17 @@ spec: securityContext: {{- toYaml $podValues.podSecurityContext | nindent 8 }} 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 }} securityContext: {{- toYaml $podValues.securityContext | nindent 12 }} diff --git a/helm/templates/deployments/datatracker.yaml b/helm/templates/deployments/datatracker.yaml index 31f15a5b7..85e7556e9 100644 --- a/helm/templates/deployments/datatracker.yaml +++ b/helm/templates/deployments/datatracker.yaml @@ -27,10 +27,10 @@ spec: securityContext: {{- toYaml $podValues.podSecurityContext | nindent 8 }} containers: - {{- if $podValues.scoutapm }} + {{- if .Values.scoutapm }} - name: "scoutapm" - image: "{{ $podValues.scoutapm.image.repository }}:{{ default "latest" $podValues.scoutapm.image.tag }}" - imagePullPolicy: {{ default "IfNotPresent" $podValues.scoutapm.image.imagePullPolicy }} + image: "{{ .Values.scoutapm.image.repository }}:{{ default "latest" .Values.scoutapm.image.tag }}" + imagePullPolicy: {{ default "IfNotPresent" .Values.scoutapm.image.imagePullPolicy }} livenessProbe: exec: command: diff --git a/helm/values.yaml b/helm/values.yaml index 564f8c025..1a47d7f63 100644 --- a/helm/values.yaml +++ b/helm/values.yaml @@ -166,12 +166,6 @@ datatracker: nodeSelector: {} affinity: {} - - # Set this to enable a Scout APM Core Agent sidecar - scoutapm: - image: - repository: "scoutapp/scoutapm" - tag: "version-1.4.0" # ------------------------------------------------------------- # CELERY @@ -567,6 +561,15 @@ memcached: 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 # -------------------------------------------------------------