.
This commit is contained in:
parent
67037e45d2
commit
8447421071
@ -3,7 +3,7 @@ apiVersion: v2
|
|||||||
description: Helm chart for ttrss
|
description: Helm chart for ttrss
|
||||||
name: ttrss
|
name: ttrss
|
||||||
type: application
|
type: application
|
||||||
version: 0.0.16
|
version: 0.0.17
|
||||||
kubeVersion: ">=1.16.0-0"
|
kubeVersion: ">=1.16.0-0"
|
||||||
keywords:
|
keywords:
|
||||||
- ttrss
|
- ttrss
|
||||||
|
|||||||
@ -34,38 +34,4 @@ spec:
|
|||||||
requests:
|
requests:
|
||||||
storage: 1000Mi
|
storage: 1000Mi
|
||||||
storageClassName: local-path
|
storageClassName: local-path
|
||||||
volumeName: pvc-rss-data
|
volumeName: pvc-rss-data
|
||||||
---
|
|
||||||
apiVersion: "batch/v1"
|
|
||||||
kind: "CronJob"
|
|
||||||
metadata:
|
|
||||||
name: {{ include "common.fullname" . }}
|
|
||||||
labels:
|
|
||||||
{{- include "common.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
schedule: "25 9 * * *"
|
|
||||||
jobTemplate:
|
|
||||||
spec:
|
|
||||||
template:
|
|
||||||
spec:
|
|
||||||
automountServiceAccountToken: false
|
|
||||||
containers:
|
|
||||||
- name: "mydl-mongo-dump"
|
|
||||||
image: "docker.io/library/mariadb:10.2"
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
command : ["/bin/sh", "-c"]
|
|
||||||
args: [ "echo toto" ]
|
|
||||||
# TODO: volumemount avec le pvc deja cree ?
|
|
||||||
# volumeMounts:
|
|
||||||
# - mountPath: "/dump"
|
|
||||||
# name: "mydl-mongo-dump"
|
|
||||||
# TODO: surement des envs ?
|
|
||||||
# env:
|
|
||||||
# - name: "MONGO_INITDB_ROOT_USERNAME"
|
|
||||||
# value: "toto"
|
|
||||||
restartPolicy: "OnFailure"
|
|
||||||
# TODO: volumemount avec le pvc deja cree ?
|
|
||||||
# volumes:
|
|
||||||
# - name: "mydl-mongo-dump"
|
|
||||||
# persistentVolumeClaim:
|
|
||||||
# claimName: "mydl-mongo-dump"
|
|
||||||
102
charts/ttrss/templates/02-cronjob.yaml
Normal file
102
charts/ttrss/templates/02-cronjob.yaml
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
{{- include "common.values.setup" . }}
|
||||||
|
---
|
||||||
|
apiVersion: "batch/v1"
|
||||||
|
kind: "CronJob"
|
||||||
|
metadata:
|
||||||
|
name: {{ include "common.names.fullname" . }}
|
||||||
|
labels:
|
||||||
|
{{- include "common.labels" . | nindent 4 }}
|
||||||
|
{{- with .Values.controller.labels }}
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
{{- with .Values.controller.annotations }}
|
||||||
|
annotations:
|
||||||
|
{{- toYaml . | nindent 4 }}
|
||||||
|
{{- end }}
|
||||||
|
spec:
|
||||||
|
schedule: "25 9 * * *"
|
||||||
|
jobTemplate:
|
||||||
|
spec:
|
||||||
|
template:
|
||||||
|
spec:
|
||||||
|
automountServiceAccountToken: false
|
||||||
|
containers:
|
||||||
|
- name: "mydl-mongo-dump"
|
||||||
|
image: "docker.io/library/mariadb:10.2"
|
||||||
|
imagePullPolicy: IfNotPresent
|
||||||
|
command : ["/bin/sh", "-c"]
|
||||||
|
args: [ "echo toto" ]
|
||||||
|
# TODO: volumemount avec le pvc deja cree ?
|
||||||
|
# volumeMounts:
|
||||||
|
# - mountPath: "/dump"
|
||||||
|
# name: "mydl-mongo-dump"
|
||||||
|
# TODO: surement des envs ?
|
||||||
|
# env:
|
||||||
|
# - name: "MONGO_INITDB_ROOT_USERNAME"
|
||||||
|
# value: "toto"
|
||||||
|
restartPolicy: "OnFailure"
|
||||||
|
# TODO: volumemount avec le pvc deja cree ?
|
||||||
|
# volumes:
|
||||||
|
# - name: "mydl-mongo-dump"
|
||||||
|
# persistentVolumeClaim:
|
||||||
|
# claimName: "mydl-mongo-dump"
|
||||||
|
|
||||||
|
# spec:
|
||||||
|
# schedule: {{ .Values.cronjob.schedule }}
|
||||||
|
# concurrencyPolicy: {{ .Values.cronjob.concurrencyPolicy }}
|
||||||
|
# successfulJobsHistoryLimit: {{ .Values.cronjob.successfulJobsHistoryLimit }}
|
||||||
|
# failedJobsHistoryLimit: {{ .Values.cronjob.failedJobsHistoryLimit }}
|
||||||
|
# jobTemplate:
|
||||||
|
# spec:
|
||||||
|
# backoffLimit: 0
|
||||||
|
# template:
|
||||||
|
# spec:
|
||||||
|
# restartPolicy: Never
|
||||||
|
# automountServiceAccountToken: false
|
||||||
|
# containers:
|
||||||
|
# - name: {{ include "common.names.fullname" . }}
|
||||||
|
# image: {{ printf "%s:%s" .Values.image.repository (default .Chart.AppVersion .Values.image.tag) | quote }}
|
||||||
|
# imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||||
|
# {{- with .Values.env }}
|
||||||
|
# env:
|
||||||
|
# {{- range $k, $v := . }}
|
||||||
|
# {{- $name := $k }}
|
||||||
|
# {{- $value := $v }}
|
||||||
|
# {{- if kindIs "int" $name }}
|
||||||
|
# {{- $name = required "environment variables as a list of maps require a name field" $value.name }}
|
||||||
|
# {{- end }}
|
||||||
|
# - name: {{ quote $name }}
|
||||||
|
# {{- if kindIs "map" $value -}}
|
||||||
|
# {{- if hasKey $value "value" }}
|
||||||
|
# {{- $value = $value.value -}}
|
||||||
|
# {{- else if hasKey $value "valueFrom" }}
|
||||||
|
# {{- toYaml $value | nindent 6 }}
|
||||||
|
# {{- else }}
|
||||||
|
# {{- dict "valueFrom" $value | toYaml | nindent 6 }}
|
||||||
|
# {{- end }}
|
||||||
|
# {{- end }}
|
||||||
|
# {{- if not (kindIs "map" $value) }}
|
||||||
|
# {{- if kindIs "string" $value }}
|
||||||
|
# {{- $value = tpl $value $ }}
|
||||||
|
# {{- end }}
|
||||||
|
# value: {{ quote $value }}
|
||||||
|
# {{- end }}
|
||||||
|
# {{- end }}
|
||||||
|
# {{- end }}
|
||||||
|
# envFrom:
|
||||||
|
# - secretRef:
|
||||||
|
# name: {{ include "common.names.fullname" . }}
|
||||||
|
# volumeMounts:
|
||||||
|
# - name: dump
|
||||||
|
# mountPath: /dump
|
||||||
|
# - name: db
|
||||||
|
# mountPath: /home/offlineimap/.offlineimap
|
||||||
|
# volumes:
|
||||||
|
# - name: dump
|
||||||
|
# hostPath:
|
||||||
|
# path: /data/volume-offlineimap
|
||||||
|
# type: ''
|
||||||
|
# - name: db
|
||||||
|
# hostPath:
|
||||||
|
# path: /data/volume-offlineimap-db
|
||||||
|
# type: ''
|
||||||
Loading…
x
Reference in New Issue
Block a user