From f4c15191dc34c31d3827f4b8b4a0197f6511477d Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 13 Mar 2024 01:07:01 -0600 Subject: [PATCH] add libation --- charts/libation/Chart.yaml | 12 ++++++ charts/libation/templates/job.yaml | 39 +++++++++++++++++++ .../templates/persistent-volume-claim.yaml | 19 +++++++++ charts/libation/values.yaml | 14 +++++++ 4 files changed, 84 insertions(+) create mode 100644 charts/libation/Chart.yaml create mode 100644 charts/libation/templates/job.yaml create mode 100644 charts/libation/templates/persistent-volume-claim.yaml create mode 100644 charts/libation/values.yaml diff --git a/charts/libation/Chart.yaml b/charts/libation/Chart.yaml new file mode 100644 index 0000000..78c555a --- /dev/null +++ b/charts/libation/Chart.yaml @@ -0,0 +1,12 @@ +apiVersion: v2 +name: libation +version: 0.0.1 +description: Chart for benphelps homepage +keywords: + - dashboard +sources: + - https://github.com/rmcrackan/Libation +maintainers: + - name: alexlebens +icon: https://getlibation.com/images/libation-logo.png +appVersion: "11.1.0" diff --git a/charts/libation/templates/job.yaml b/charts/libation/templates/job.yaml new file mode 100644 index 0000000..58dde48 --- /dev/null +++ b/charts/libation/templates/job.yaml @@ -0,0 +1,39 @@ +apiVersion: batch/v1 +kind: CronJob +metadata: + name: libation + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: libation + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} + app.kubernetes.io/component: job + app.kubernetes.io/part-of: libation +spec: + schedule: {{ .Values.libation.job.schedule }} + successfulJobsHistoryLimit: 3 + failedJobsHistoryLimit: 3 + jobTemplate: + spec: + template: + spec: + restartPolicy: Never + containers: + - name: libation + image: "{{ .Values.libation.image.repository }}:{{ .Values.libation.image.tag }}" + imagePullPolicy: {{ .Values.libation.image.pullPolicy }} + env: + - name: SLEEP_TIME + value: "-1" + volumeMounts: + - name: libation-config + mountPath: /config + - name: libation-books + mountPath: /data + volumes: + - name: libation-config + persistentVolumeClaim: + claimName: libation-config + - name: libation-books + persistentVolumeClaim: + claimName: {{ .Values.persistence.books.claimName }} diff --git a/charts/libation/templates/persistent-volume-claim.yaml b/charts/libation/templates/persistent-volume-claim.yaml new file mode 100644 index 0000000..33e5411 --- /dev/null +++ b/charts/libation/templates/persistent-volume-claim.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: libation-config + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: libation + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} + app.kubernetes.io/component: storage + app.kubernetes.io/part-of: libation +spec: + accessModes: + - ReadWriteOnce + resources: + requests: + storage: {{ .Values.persistence.config.storageSize }} + storageClassName: {{ .Values.persistence.config.storageClassName }} + volumeMode: {{ .Values.persistence.config.volumeMode }} diff --git a/charts/libation/values.yaml b/charts/libation/values.yaml new file mode 100644 index 0000000..028a23e --- /dev/null +++ b/charts/libation/values.yaml @@ -0,0 +1,14 @@ +libation: + job: + schedule: "0 * * * *" + image: + repository: rmcrackan/libation + tag: "11.1.0" + pullPolicy: IfNotPresent +persistence: + config: + storageClassName: nfs-client + storageSize: 1Gi + volumeMode: Filesystem + books: + claimName: libation-nfs-storage