diff --git a/charts/laravel/Chart.yaml b/charts/laravel/Chart.yaml index 2753002..2b04e2e 100644 --- a/charts/laravel/Chart.yaml +++ b/charts/laravel/Chart.yaml @@ -15,7 +15,7 @@ type: application # This is the chart version. This version number should be incremented each time you make changes # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 0.2.1 +version: 0.2.2 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/laravel/templates/queue.yml b/charts/laravel/templates/queue.yml new file mode 100644 index 0000000..abe333a --- /dev/null +++ b/charts/laravel/templates/queue.yml @@ -0,0 +1,36 @@ +{{- if .Values.queue.enabled -}} +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ include "laravel.fullname" . }}-queue + labels: + app: {{ include "laravel.fullname" . }}-queue + {{- include "laravel.labels" . | nindent 4 }} + annotations: + secrets.infisical.com/auto-reload: "true" +spec: + replicas: {{ .Values.queue.replicaCount }} + selector: + matchLabels: + app: {{ include "laravel.fullname" . }}-queue + template: + metadata: + name: {{ include "laravel.fullname" . }}-queue + labels: + app: {{ include "laravel.fullname" . }}-queue + spec: + restartPolicy: Always + containers: + - name: queue + image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" + imagePullPolicy: {{ .Values.image.pullPolicy }} + command: + - php + - artisan + - queue:work + envFrom: + - secretRef: + name: {{ include "laravel.managedSecretReferenceSecretName" . }} + resources: + {{- toYaml .Values.app.resources | nindent 12 }} +{{- end }} \ No newline at end of file