Skip to content

Commit

Permalink
Merge pull request #1345 from porter-dev/rudimk/datadog-uds-fixes
Browse files Browse the repository at this point in the history
Datadog UDS Sockets
  • Loading branch information
rudimk authored Jul 22, 2024
2 parents 0be1ca4 + c699932 commit e42044c
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 9 deletions.
15 changes: 11 additions & 4 deletions applications/web/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -358,8 +358,10 @@ spec:
{{- end }}
{{ if .Values.datadogSocketVolume.enabled }}
volumeMounts:
- name: apmsocketpath
mountPath: /var/run/datadog
- name: datadog-apm-socket
mountPath: /var/run/datadog/apm.socket
- name: datadog-dsd-socket
mountPath: /var/run/datadog/dsd.socket
{{ end }}
{{ if .Values.awsEfsStorage }}
volumeMounts:
Expand Down Expand Up @@ -454,8 +456,13 @@ spec:
volumes:
{{ if .Values.datadogSocketVolume.enabled }}
- hostPath:
path: /var/run/datadog/
name: apmsocketpath
path: /var/run/datadog/apm.socket
type: Socket
name: datadog-apm-socket
- hostPath:
path: /var/run/datadog/dsd.socket
type: Socket
name: datadog-dsd-socket
{{ end }}
{{ if .Values.cloudsql.enabled }}
- name: "sidecar-volume-{{ include "docker-template.fullname" . }}"
Expand Down
17 changes: 12 additions & 5 deletions applications/worker/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -302,9 +302,11 @@ spec:
{{- end }}
{{ if .Values.datadogSocketVolume.enabled }}
volumeMounts:
- name: apmsocketpath
mountPath: /var/run/datadog
{{ end }}
- name: datadog-apm-socket
mountPath: /var/run/datadog/apm.socket
- name: datadog-dsd-socket
mountPath: /var/run/datadog/dsd.socket
{{ end }}
{{ if .Values.pvc.enabled }}
volumeMounts:
- name: "{{ include "docker-template.fullname" . }}-storage"
Expand Down Expand Up @@ -379,8 +381,13 @@ spec:
volumes:
{{ if .Values.datadogSocketVolume.enabled }}
- hostPath:
path: /var/run/datadog/
name: apmsocketpath
path: /var/run/datadog/apm.socket
type: Socket
name: datadog-apm-socket
- hostPath:
path: /var/run/datadog/dsd.socket
type: Socket
name: datadog-dsd-socket
{{ end }}
{{ if .Values.cloudsql.enabled }}
- name: "sidecar-volume-{{ include "docker-template.fullname" . }}"
Expand Down

0 comments on commit e42044c

Please sign in to comment.