Skip to content

Commit

Permalink
Merge pull request #6 from metrico/qryn-worker
Browse files Browse the repository at this point in the history
Qryn worker
  • Loading branch information
akvlad authored Jul 1, 2024
2 parents 0c9a940 + c7ca835 commit a497fee
Show file tree
Hide file tree
Showing 7 changed files with 1,976 additions and 84 deletions.
251 changes: 170 additions & 81 deletions README.md

Large diffs are not rendered by default.

54 changes: 54 additions & 0 deletions charts/qryn-cloud-helm/templates/delete-worker.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{{ if .Values.deleteWorker.enabled }}
apiVersion: batch/v1
kind: CronJob
metadata:
name: {{ include "qryn-all-in-one.fullname" . }}-delete-worker
labels:
io.metrico.service: qryn-delete-worker
{{- include "qryn-all-in-one.labels" . | nindent 4 }}
spec:
successfulJobsHistoryLimit: 3
failedJobsHistoryLimit: 1
schedule: {{.Values.deleteWorker.schedule | quote }}
concurrencyPolicy: Forbid
jobTemplate:
metadata:
labels:
io.metrico.service: qryn-delete-worker
{{- include "qryn-all-in-one.selectorLabels" . | nindent 8 }}
{{- with .Values.deleteWorker.podAnnotations }}
annotations:
{{- toYaml . | nindent 8 }}
{{- end }}
spec:
template:
spec:
containers:
- envFrom:
- configMapRef:
name: {{ include "qryn-all-in-one.fullname" . }}-qryn
image: {{ .Values.deleteWorker.image.repository }}:{{ .Values.deleteWorker.image.tag | default .Chart.AppVersion }}
imagePullPolicy: {{ .Values.deleteWorker.imagePullPolicy }}
name: qryn-delete-worker
resources: {{ toYaml .Values.deleteWorker.resources | nindent 16 }}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
dnsPolicy: ClusterFirst
imagePullSecrets:
- name: qryn-dckr
restartPolicy: Never
securityContext: {}
terminationGracePeriodSeconds: 30
{{- with .Values.deleteWorker.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.deleteWorker.affinity }}
affinity:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- with .Values.deleteWorker.tolerations }}
tolerations:
{{- toYaml . | nindent 8 }}
{{- end }}
{{ end }}
Loading

0 comments on commit a497fee

Please sign in to comment.