You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
63 lines
2.0 KiB
63 lines
2.0 KiB
4 years ago
|
{{- if .Values.instance.zeoclient }}
|
||
|
{{- if .Values.instance.zeopack.enabled }}
|
||
|
apiVersion: batch/v1beta1
|
||
|
kind: CronJob
|
||
|
metadata:
|
||
|
name: {{ include "portalmodelo.fullname" . }}-zeopack
|
||
|
labels:
|
||
|
{{- include "portalmodelo.labels" . | nindent 4 }}
|
||
|
spec:
|
||
|
schedule: {{ .Values.instance.zeopack.schedule | quote }}
|
||
|
jobTemplate:
|
||
|
spec:
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
{{- include "portalmodelo.labels" . | nindent 12 }}
|
||
|
spec:
|
||
|
{{- with .Values.imagePullSecrets }}
|
||
|
imagePullSecrets:
|
||
|
{{- toYaml . | nindent 12 }}
|
||
|
{{- end }}
|
||
|
securityContext:
|
||
|
{{- toYaml .Values.podSecurityContext | nindent 12 }}
|
||
|
containers:
|
||
|
- name: {{ .Release.Name }}-zeopack
|
||
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
||
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||
|
args:
|
||
|
- zeopack
|
||
|
env:
|
||
|
- name: ZEO_ADDRESS
|
||
|
value: {{ template "portalmodelo.fullname" . }}-zeoserver:8100
|
||
|
- name: TZ
|
||
|
value: {{ .Values.portal.timeZone }}
|
||
|
volumeMounts:
|
||
|
- mountPath: /data
|
||
|
name: data
|
||
|
resources:
|
||
|
{{- toYaml .Values.resources.zeo | nindent 12 }}
|
||
|
restartPolicy: OnFailure
|
||
|
volumes:
|
||
|
- name: data
|
||
|
{{- if .Values.persistence.enabled }}
|
||
|
persistentVolumeClaim:
|
||
|
claimName: data
|
||
|
{{- else }}
|
||
|
emptyDir: {}
|
||
|
{{- end }}
|
||
|
{{- with .Values.nodeSelector }}
|
||
|
nodeSelector:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.affinity }}
|
||
|
affinity:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
{{- with .Values.tolerations }}
|
||
|
tolerations:
|
||
|
{{- toYaml . | nindent 8 }}
|
||
|
{{- end }}
|
||
|
{{- end}}
|
||
|
{{- end}}
|