Skip to content

Commit

Permalink
add queue
Browse files Browse the repository at this point in the history
  • Loading branch information
Thiritin committed Sep 11, 2024
1 parent b2dd9b0 commit 1b8a34a
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/laravel/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
36 changes: 36 additions & 0 deletions charts/laravel/templates/queue.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 1b8a34a

Please sign in to comment.