chore: wip
Some checks are pending
Release Docs / Release Docs (push) Waiting to run
Release / Build and publish a Docker image / build-and-push-image (push) Waiting to run
Some checks are pending
Release Docs / Release Docs (push) Waiting to run
Release / Build and publish a Docker image / build-and-push-image (push) Waiting to run
This commit is contained in:
parent
491a9cc294
commit
eeada0e25d
17 changed files with 674 additions and 0 deletions
44
charts/pterodactyl-panel/templates/cron/cronjob.yaml
Normal file
44
charts/pterodactyl-panel/templates/cron/cronjob.yaml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
apiVersion: batch/v1
|
||||
kind: CronJob
|
||||
metadata:
|
||||
name: {{ include "pterodactyl-panel.fullname" . }}
|
||||
labels:
|
||||
app.kubernetes.io/name: php-cli
|
||||
app.kubernetes.io/version: "{{ .Values.phpfpm.image.tag | default .Chart.AppVersion }}"
|
||||
app.kubernetes.io/component: backend-cronjob
|
||||
app.kubernetes.io/part-of: pterodactyl-panel
|
||||
|
||||
spec:
|
||||
schedule: "* * * * *"
|
||||
jobTemplate:
|
||||
spec:
|
||||
backoffLimit: 4
|
||||
activeDeadlineSeconds: 60
|
||||
ttlSecondsAfterFinished: 900
|
||||
|
||||
template:
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "pterodactyl-panel.serviceAccountName" . }}
|
||||
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
resources:
|
||||
{{- toYaml .Values.cron.resources | nindent 14 }}
|
||||
command: ["php"]
|
||||
args:
|
||||
- /var/www/pterodactyl/artisan
|
||||
- schedule:run
|
||||
|
||||
envFrom:
|
||||
- configMapRef:
|
||||
name: {{ include "pterodactyl-panel.fullname" . }}-config
|
||||
- secretRef:
|
||||
name: {{ include "pterodactyl-panel.fullname" . }}-credentials
|
||||
|
||||
restartPolicy: OnFailure
|
||||
Reference in a new issue