update(deluge)

This commit is contained in:
nold 2022-12-09 16:06:51 +01:00
parent e9b2e4df70
commit ddef809255
6 changed files with 14 additions and 174 deletions

View file

@ -1,30 +0,0 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/
# OWNERS file for Kubernetes
OWNERS
# helm-docs templates
*.gotmpl
# helm unit tests
tests/

View file

@ -1,13 +0,0 @@
---
apiVersion: v2
description: Deluge Torrent Client & Webinterface
name: deluge
version: 1.0.1
kubeVersion: ">=1.22.0-0"
maintainers:
- name: nold
email: nold@gnu.one
dependencies:
- name: common
repository: https://bjw-s.github.io/helm-charts
version: 1.2.0

View file

@ -1,4 +0,0 @@
---
{{- include "bjw-s.common.loader.init" . }}
{{/* Render the templates */}}
{{ include "bjw-s.common.loader.generate" . }}

View file

@ -1,117 +0,0 @@
---
image:
repository: lib42/deluge
tag: 2.1.1-r6
command: [ "/usr/bin/deluge-web" ]
args: [ "-d", "-c", "/config", "-L", "info" ]
securityContext:
runAsNonRoot: true
privileged: false
readOnlyRootFilesystem: true
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
ingress:
main:
enabled: true
annotations:
cert-manager.io/cluster-issuer: "vault-issuer"
traefik.ingress.kubernetes.io/router.tls: 'true'
nginx.ingress.kubernetes.io/proxy-body-size: 50m
hosts:
- host: torrent.dc
paths:
- path: /
pathType: Prefix
tls:
- secretName: torrent.dc-tls
hosts:
- torrent.dc
service:
main:
enabled: true
ports:
http:
port: 8112
env:
PUID: 1000
GUID: 1000
probes:
liveness:
enabled: false
readiness:
enabled: false
startup:
enabled: false
persistence:
config:
enabled: true
mountPath: /config
size: 10M
# use hostpath instead
downloads:
enabled: true
type: hostPath
hostPath: /data/torrent
mountPath: /downloads
startupProbe:
initialDelaySeconds: 600
periodSeconds: 120
failureThreshold: 6
## VPN
addons:
vpn:
enabled: true
env:
VPN_SERVICE_PROVIDER: mullvad
VPN_TYPE: openvpn
WIREGUARD_ADDRESSES: 10.67.135.224/32
DNS_KEEP_NAMESERVER: "on"
DOT: "on"
FIREWALL: "on"
FIREWALL_INPUT_PORTS: "8112,8000"
FIREWALL_VPN_INPUT_PORTS: 61086
envFrom:
- secretRef:
name: wireguard-config
securityContext:
capabilities:
add:
- NET_ADMIN
livenessProbe:
httpGet:
path: /v1/openvpn/status
port: 8000
initialDelaySeconds: 30
periodSeconds: 30
initContainers:
init-config:
image: lib42/deluge:2.1.1-r6
command: ["/bin/sh"]
args: [ "-c", "[ ! -f /config/core.conf ] && cp -v /defaults/core.conf /config/core.conf"]
additionalContainers:
deluge-daemon:
image: lib42/deluge:2.1.1-r6
volumeMounts:
- name: config
mountPath: /config
- name: downloads
mountPath: /downloads

View file

@ -1,10 +1,11 @@
config: config:
description: Tools for downloading linux isos description: Tools for downloading linux isos
apps: apps:
- name: deluge - name: deluge
repoURL: https://github.com/nold360/hive-apps repoURL: https://lib42.github.io/charts
path: projects/downloader/charts/deluge chart: deluge
targetRevision: main targetRevision: 1.1.0
secrets: secrets:
- name: openvpn - name: openvpn
keys: keys:
@ -13,7 +14,6 @@ apps:
include: include:
- ingress-internal - ingress-internal
- name: youtubedl - name: youtubedl
repoURL: https://k8s-at-home.com/charts/ repoURL: https://k8s-at-home.com/charts/
chart: youtubedl-material chart: youtubedl-material

View file

@ -1,10 +1,7 @@
--- ---
image: image:
repository: lib42/deluge repository: lib42/deluge
tag: 2.1.1-r6 tag: "2"
command: [ "/usr/bin/deluge-web" ]
args: [ "-d", "-c", "/config", "-L", "info" ]
podSecurityContext: podSecurityContext:
fsGroup: 1000 fsGroup: 1000
@ -64,6 +61,11 @@ persistence:
type: emptyDir type: emptyDir
mountPath: /tmp mountPath: /tmp
cache:
enabled: true
type: emptyDir
mountPath: /home/deluge/.cache
## VPN ## VPN
addons: addons:
vpn: vpn:
@ -98,7 +100,7 @@ addons:
initContainers: initContainers:
init-config: init-config:
image: lib42/deluge:2.1.1-r6 image: lib42/deluge:2
command: ["/bin/sh"] command: ["/bin/sh"]
args: [ "-c", "([ ! -f /config/core.conf ] && cp -v /defaults/core.conf /config/core.conf) || true"] args: [ "-c", "([ ! -f /config/core.conf ] && cp -v /defaults/core.conf /config/core.conf) || true"]
volumeMounts: volumeMounts:
@ -107,9 +109,11 @@ initContainers:
additionalContainers: additionalContainers:
deluge-daemon: deluge-daemon:
image: lib42/deluge:2.1.1-r6 image: lib42/deluge:2
volumeMounts: volumeMounts:
- name: config - name: config
mountPath: /config mountPath: /config
- name: downloads - name: downloads
mountPath: /downloads mountPath: /downloads
- name: cache
mountPath: /home/deluge/.cache