130 lines
3.3 KiB
YAML
130 lines
3.3 KiB
YAML
---
|
|
# Source: libation/templates/persistent-volume.yaml
|
|
apiVersion: v1
|
|
kind: PersistentVolume
|
|
metadata:
|
|
name: libation-nfs-storage
|
|
namespace: libation
|
|
labels:
|
|
app.kubernetes.io/name: libation-nfs-storage
|
|
app.kubernetes.io/instance: libation
|
|
app.kubernetes.io/part-of: libation
|
|
spec:
|
|
persistentVolumeReclaimPolicy: Retain
|
|
storageClassName: nfs-client
|
|
capacity:
|
|
storage: 1Gi
|
|
accessModes:
|
|
- ReadWriteMany
|
|
nfs:
|
|
path: /volume2/Storage/Audiobooks/
|
|
server: synologybond.alexlebens.net
|
|
mountOptions:
|
|
- vers=4
|
|
- minorversion=1
|
|
- noac
|
|
---
|
|
# Source: libation/templates/persistent-volume-claim.yaml
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: libation-config
|
|
namespace: libation
|
|
labels:
|
|
app.kubernetes.io/name: libation-config
|
|
app.kubernetes.io/instance: libation
|
|
app.kubernetes.io/part-of: libation
|
|
spec:
|
|
storageClassName: nfs-client
|
|
accessModes:
|
|
- ReadWriteOnce
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
volumeMode: Filesystem
|
|
---
|
|
# Source: libation/templates/persistent-volume-claim.yaml
|
|
apiVersion: v1
|
|
kind: PersistentVolumeClaim
|
|
metadata:
|
|
name: libation-nfs-storage
|
|
namespace: libation
|
|
labels:
|
|
app.kubernetes.io/name: libation-nfs-storage
|
|
app.kubernetes.io/instance: libation
|
|
app.kubernetes.io/part-of: libation
|
|
spec:
|
|
volumeName: libation-nfs-storage
|
|
storageClassName: nfs-client
|
|
accessModes:
|
|
- ReadWriteMany
|
|
resources:
|
|
requests:
|
|
storage: 1Gi
|
|
---
|
|
# Source: libation/charts/libation/templates/common.yaml
|
|
---
|
|
apiVersion: batch/v1
|
|
kind: CronJob
|
|
metadata:
|
|
name: libation
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: libation
|
|
app.kubernetes.io/managed-by: Helm
|
|
app.kubernetes.io/name: libation
|
|
helm.sh/chart: libation-4.4.0
|
|
namespace: libation
|
|
spec:
|
|
suspend: false
|
|
concurrencyPolicy: Forbid
|
|
startingDeadlineSeconds: 90
|
|
timeZone: US/Central
|
|
schedule: "30 4 * * *"
|
|
successfulJobsHistoryLimit: 3
|
|
failedJobsHistoryLimit: 3
|
|
jobTemplate:
|
|
spec:
|
|
parallelism: 1
|
|
backoffLimit: 3
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/controller: main
|
|
app.kubernetes.io/instance: libation
|
|
app.kubernetes.io/name: libation
|
|
spec:
|
|
enableServiceLinks: false
|
|
serviceAccountName: default
|
|
automountServiceAccountToken: true
|
|
hostIPC: false
|
|
hostNetwork: false
|
|
hostPID: false
|
|
dnsPolicy: ClusterFirst
|
|
restartPolicy: Never
|
|
containers:
|
|
- env:
|
|
- name: SLEEP_TIME
|
|
value: "-1"
|
|
- name: LIBATION_BOOKS_DIR
|
|
value: /data
|
|
image: rmcrackan/libation:12.7.4
|
|
imagePullPolicy: IfNotPresent
|
|
name: main
|
|
resources:
|
|
requests:
|
|
cpu: 10m
|
|
memory: 128Mi
|
|
volumeMounts:
|
|
- mountPath: /config
|
|
name: config
|
|
- mountPath: /data
|
|
name: data
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: libation-config
|
|
- name: data
|
|
persistentVolumeClaim:
|
|
claimName: libation-nfs-storage
|