diff --git a/clusters/ipv6/arr-stack/sabnzbd/sabnzbd-ingress.yml b/clusters/ipv6/arr-stack/sabnzbd/sabnzbd-ingress.yml new file mode 100644 index 0000000..57b7ded --- /dev/null +++ b/clusters/ipv6/arr-stack/sabnzbd/sabnzbd-ingress.yml @@ -0,0 +1,27 @@ +--- +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: sabnzbd-ingress + namespace: arr-stack + annotations: + cert-manager.io/cluster-issuer: letsencrypt-cloudflare + traefik.ingress.kubernetes.io/router.middlewares: tools-authelia@kubernetescrd + traefik.ingress.kubernetes.io/router.entrypoints: websecure +spec: + ingressClassName: traefik + tls: + - hosts: + - sabnzbd.akshun-lab.cc + secretName: sabnzbd-tls + rules: + - host: sabnzbd.akshun-lab.cc + http: + paths: + - path: / + pathType: Prefix + backend: + service: + name: sabnzbd-service + port: + number: 8080 diff --git a/clusters/ipv6/arr-stack/sabnzbd/sabnzbd-pvc.yml b/clusters/ipv6/arr-stack/sabnzbd/sabnzbd-pvc.yml new file mode 100644 index 0000000..0133026 --- /dev/null +++ b/clusters/ipv6/arr-stack/sabnzbd/sabnzbd-pvc.yml @@ -0,0 +1,14 @@ +--- +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + name: sabnzbd-longhorn + namespace: arr-stack +spec: + accessModes: + - ReadWriteOnce + volumeMode: Filesystem + resources: + requests: + storage: 1Gi + storageClassName: longhorn diff --git a/clusters/ipv6/arr-stack/sabnzbd/sabnzbd-svc.yml b/clusters/ipv6/arr-stack/sabnzbd/sabnzbd-svc.yml new file mode 100644 index 0000000..cda6d09 --- /dev/null +++ b/clusters/ipv6/arr-stack/sabnzbd/sabnzbd-svc.yml @@ -0,0 +1,12 @@ +--- +apiVersion: v1 +kind: Service +metadata: + name: sabnzbd-service + namespace: arr-stack +spec: + selector: + app: sabnzbd + ports: + - port: 8080 + targetPort: 8080 diff --git a/clusters/ipv6/arr-stack/sabnzbd/sabnzbd.yml b/clusters/ipv6/arr-stack/sabnzbd/sabnzbd.yml new file mode 100644 index 0000000..20bb0cb --- /dev/null +++ b/clusters/ipv6/arr-stack/sabnzbd/sabnzbd.yml @@ -0,0 +1,40 @@ +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: sabnzbd + namespace: arr-stack +spec: + strategy: + type: Recreate + selector: + matchLabels: + app: sabnzbd + template: + metadata: + labels: + app: sabnzbd + spec: + containers: + - name: sabnzbd + image: lscr.io/linuxserver/sabnzbd:4.5.5 + env: + - name: PUID + value: "1000" + - name: PGID + value: "1000" + - name: TZ + value: "Asia/Kolkata" + volumeMounts: + - name: sabnzbd-config + mountPath: /config + - name: downloads + mountPath: /downloads + volumes: + - name: sabnzbd-config + persistentVolumeClaim: + claimName: sabnzbd-longhorn + - name: downloads + nfs: + server: 192.168.1.4 + path: /merge/downloads