Skip to content

Commit

Permalink
fix: add resource to scheduler
Browse files Browse the repository at this point in the history
  • Loading branch information
NishaSharma14 committed Dec 19, 2022
1 parent 299b23f commit 0c8d960
Show file tree
Hide file tree
Showing 3 changed files with 52 additions and 2 deletions.
2 changes: 1 addition & 1 deletion charts/nmrxiv-app/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,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.5.1
version: 0.5.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
50 changes: 50 additions & 0 deletions charts/nmrxiv-app/templates/scheduler-old.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: nmrxiv-scheduler
spec:
selector:
matchLabels:
app: nmrxiv-scheduler
template:
metadata:
labels:
app: nmrxiv-scheduler
spec:
containers:
- name: nmrxiv-scheduler
image: europe-west3-docker.pkg.dev/nmrxiv/nmrxiv-dev/nmrxiv-app:latest
imagePullPolicy: Always
command:
- php
args:
- artisan
- schedule:work
resources: {}
volumeMounts:
- name: logs
mountPath: /var/www/html/storage/logs
- name: cache
mountPath: /var/www/html/storage/framework/cache
- name: sessions
mountPath: /var/www/html/storage/framework/sessions
- name: views
mountPath: /var/www/html/storage/framework/views
- name: testing
mountPath: /var/www/html/storage/framework/testing
envFrom:
- configMapRef:
name: nmrxiv-config-map
- secretRef:
name: nmrxiv-secrets
volumes:
- name: logs
emptyDir: {}
- name: cache
emptyDir: {}
- name: testing
emptyDir: {}
- name: sessions
emptyDir: {}
- name: views
emptyDir: {}
2 changes: 1 addition & 1 deletion charts/nmrxiv-app/templates/scheduler.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ spec:
imagePullPolicy: {{ .Values.appImage.pullPolicy }}
command: ["/bin/sh", "-c", "{{ .Values.scheduler.cmd }}"]
name: {{ printf "%s-scheduler" .Release.Name | quote }}
resources: {}
resources: {{ .Values.scheduler.resources }}
volumeMounts:
- name: logs
mountPath: /var/www/html/storage/logs
Expand Down

0 comments on commit 0c8d960

Please sign in to comment.