Skip to content

Commit

Permalink
Merge pull request #37 from directus-labs/sidecars
Browse files Browse the repository at this point in the history
Sidecars
  • Loading branch information
mikesindieiev authored Oct 17, 2024
2 parents 2debf61 + 3cb9921 commit a677c71
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
8 changes: 8 additions & 0 deletions charts/directus/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,14 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
volumeMounts:
{{- toYaml .Values.extraVolumeMounts | nindent 12 }}
{{- if .Values.sidecar.enabled }}
- name: {{ .Chart.Name }}-sidecar
image: "{{ .Values.sidecar.repository }}:{{ .Values.sidecar.tag }}"
imagePullPolicy: {{ .Values.sidecar.pullPolicy }}
command: {{ .Values.sidecar.command }}
securityContext:
{{- toYaml .Values.sidecar.securityContext | nindent 12 }}
{{- end }}
{{- with .Values.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
Expand Down
9 changes: 9 additions & 0 deletions charts/directus/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,15 @@ imagePullSecrets: []
nameOverride: ""
fullnameOverride: ""

sidecar:
enabled: true
repository: alpine
tag: latest
pullPolicy: Always
command: ['sleep', '3600']
securityContext: {}
# allowPrivilegeEscalation: true

adminEmail: "[email protected]"

serviceAccount:
Expand Down

0 comments on commit a677c71

Please sign in to comment.