From e2b3ad25f0e5aa6b36ce09bbdb75b9bb77cd4dae Mon Sep 17 00:00:00 2001 From: Radar231 Date: Sun, 1 Aug 2021 20:56:30 -0400 Subject: [PATCH] Initial checkin --- .gitignore | 1 + README.md | 6 +++ configs/flexget-config/config.yml | 63 +++++++++++++++++++++++++++++++ flexget_deployment.yml | 61 ++++++++++++++++++++++++++++++ flexget_pv.yml | 41 ++++++++++++++++++++ flexget_pvc.yml | 36 ++++++++++++++++++ flexget_secret.yml.tmpl | 16 ++++++++ flexget_svclb.yml | 15 ++++++++ 8 files changed, 239 insertions(+) create mode 100644 .gitignore create mode 100644 README.md create mode 100644 configs/flexget-config/config.yml create mode 100644 flexget_deployment.yml create mode 100644 flexget_pv.yml create mode 100644 flexget_pvc.yml create mode 100644 flexget_secret.yml.tmpl create mode 100644 flexget_svclb.yml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..5737b69 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +flexget_secret.yml diff --git a/README.md b/README.md new file mode 100644 index 0000000..84bd3d3 --- /dev/null +++ b/README.md @@ -0,0 +1,6 @@ +# flexget k8s manifests + +## Introduction + +This deploys a flexget server. + diff --git a/configs/flexget-config/config.yml b/configs/flexget-config/config.yml new file mode 100644 index 0000000..3b25777 --- /dev/null +++ b/configs/flexget-config/config.yml @@ -0,0 +1,63 @@ +--- +tasks: + series: + rss: https://eztv.ag/ezrss.xml + series: + - Archer + - Back + - Better Call Saul + - Brooklyn Nine-Nine + - Death in Paradise + - Devs + - Family Guy + - Halt and Catch Fire + - Kims Convenience + - Last Week Tonight + - Letterkenny + - Magnum P.I. + - Mr Robot + - Murdoch Mysteries + - Nature of Things + - Outlander + - Preacher + - Red Dwarf + - Rick and Morty + - Robot Chicken + - Seal Team + - South Park + - Stan Against Evil + - Star Trek Lower Decks + - Star Trek Discovery + - Star Trek Picard + - The Beaverton + - The Conners + - The Expanse + - The IT Crowd + - The Mandalorian + - The Orville + - The Rookie + - The Shannara Chronicles + - The Simpsons + - Vikings + - Watchmen + - Westworld + - Whose Line is it Anyway + - Young Sheldon + content_filter: + reject: '*.wmv' + transmission: + host: 192.168.7.21 + port: 9091 + username: transmission + password: transmission + ratio: 1.0 + add_paused: true +schedules: + - tasks: [series] + interval: + minutes: 5 +web_server: + bind: 0.0.0.0 + port: 5050 + +# EOF diff --git a/flexget_deployment.yml b/flexget_deployment.yml new file mode 100644 index 0000000..15094a0 --- /dev/null +++ b/flexget_deployment.yml @@ -0,0 +1,61 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: flexget + labels: + app: flexget +spec: + replicas: 1 + selector: + matchLabels: + app: flexget + strategy: + type: Recreate + template: + metadata: + labels: + app: flexget + spec: + affinity: + nodeAffinity: + requiredDuringSchedulingIgnoredDuringExecution: + nodeSelectorTerms: + - matchExpressions: + - key: beta.kubernetes.io/arch + operator: In + values: + - arm64 + containers: + - name: flexget + image: wiserain/flexget + env: + - name: FG_WEBUI_PASSWD + valueFrom: + secretKeyRef: + name: flexget-pass + key: FG_WEBUI_PASSWD + - name: FG_LOG_LEVEL + value: "info" + - name: PUID + value: "65534" + - name: PgID + value: "65534" + - name: TZ + value: "EST5EDT" + ports: + - containerPort: 5050 + volumeMounts: + - name : flexget-data + mountPath: /data + - name: flexget-config + mountPath: /config + volumes: + - name: flexget-data + persistentVolumeClaim: + claimName: flexget-data-pvc + - name: flexget-config + persistentVolumeClaim: + claimName: flexget-config-pvc + +# EOF diff --git a/flexget_pv.yml b/flexget_pv.yml new file mode 100644 index 0000000..f642e8e --- /dev/null +++ b/flexget_pv.yml @@ -0,0 +1,41 @@ +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: flexget-data-pv + labels: + name: flexget-data-pv +spec: + storageClassName: manual + capacity: + storage: 1Gi + accessModes: + - ReadWriteOnce + mountOptions: + - hard + - nfsvers=4.0 + nfs: + server: 192.168.7.11 + path: "/volume1/k8s-storage/flexget-data" + +--- +apiVersion: v1 +kind: PersistentVolume +metadata: + name: flexget-config-pv + labels: + name: flexget-config-pv +spec: + storageClassName: manual + capacity: + storage: 1Gi + accessModes: + - ReadWriteOnce + mountOptions: + - hard + - nfsvers=4.0 + nfs: + server: 192.168.7.11 + path: "/volume1/k8s-storage/flexget-config" + +# EOF diff --git a/flexget_pvc.yml b/flexget_pvc.yml new file mode 100644 index 0000000..001eff6 --- /dev/null +++ b/flexget_pvc.yml @@ -0,0 +1,36 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: flexget-data-pvc + labels: + app: flexget +spec: + accessModes: + - ReadWriteOnce + storageClassName: "manual" + resources: + requests: + storage: 1Gi + selector: + matchLabels: + name: flexget-data-pv +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: flexget-config-pvc + labels: + app: flexget +spec: + accessModes: + - ReadWriteOnce + storageClassName: "manual" + resources: + requests: + storage: 1Gi + selector: + matchLabels: + name: flexget-config-pv + +# EOF diff --git a/flexget_secret.yml.tmpl b/flexget_secret.yml.tmpl new file mode 100644 index 0000000..4d8a690 --- /dev/null +++ b/flexget_secret.yml.tmpl @@ -0,0 +1,16 @@ +--- +############################################# +# - creds for flexget webui +# - generate value using; +# echo -n '' | base64 +############################################# + +apiVersion: v1 +kind: Secret +metadata: + name: flexget-pass + namespace: k8stv +data: + FG_WEBUI_PASSWD: xxxxxxxxxx + +# EOF diff --git a/flexget_svclb.yml b/flexget_svclb.yml new file mode 100644 index 0000000..0a51020 --- /dev/null +++ b/flexget_svclb.yml @@ -0,0 +1,15 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: flexget +spec: + selector: + app: flexget + ports: + - protocol: TCP + port: 5050 + targetPort: 5050 + type: LoadBalancer + +# EOF