2024-02-24 01:47:15 +00:00
|
|
|
image:
|
|
|
|
repository: ghcr.io/bitmagnet-io/bitmagnet
|
2024-02-26 00:40:08 +00:00
|
|
|
tag: 0.7.7@sha256:45784df41956eede054a09553cc6f89139b228f94e9ea69837d95d6e559caadd
|
2024-02-24 01:47:15 +00:00
|
|
|
pullPolicy: IfNotPresent
|
|
|
|
service:
|
|
|
|
main:
|
|
|
|
ports:
|
|
|
|
main:
|
|
|
|
port: 3333
|
|
|
|
targetPort: 3333
|
|
|
|
torrent:
|
|
|
|
enabled: true
|
|
|
|
ports:
|
|
|
|
tcp:
|
|
|
|
enabled: true
|
|
|
|
port: 3334
|
|
|
|
targetPort: 3334
|
|
|
|
protocol: tcp
|
|
|
|
udp:
|
|
|
|
enabled: true
|
|
|
|
port: "{{ .Values.service.torrent.ports.tcp.port }}"
|
|
|
|
targetPort: "{{ .Values.service.torrent.ports.tcp.targetPort }}"
|
|
|
|
protocol: udp
|
|
|
|
cnpg:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
user: bitmagnet
|
|
|
|
database: bitmagnet
|
|
|
|
portal:
|
|
|
|
open:
|
|
|
|
enabled: true
|
|
|
|
workload:
|
|
|
|
main:
|
|
|
|
podSpec:
|
|
|
|
containers:
|
|
|
|
main:
|
|
|
|
env:
|
|
|
|
POSTGRES_NAME: "{{ .Values.cnpg.main.database }}"
|
|
|
|
POSTGRES_USER: "{{ .Values.cnpg.main.user }}"
|
|
|
|
POSTGRES_PASSWORD:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-user
|
|
|
|
key: password
|
|
|
|
POSTGRES_HOST:
|
|
|
|
secretKeyRef:
|
|
|
|
name: cnpg-main-urls
|
|
|
|
key: host
|
|
|
|
TMDB_API_KEY: ""
|
2024-02-27 18:37:43 +00:00
|
|
|
DHT_CRAWLER_SAVE_FILES_THRESHOLD: "100"
|
2024-02-24 01:47:15 +00:00
|
|
|
args:
|
|
|
|
- worker
|
|
|
|
- run
|
|
|
|
- --all
|
|
|
|
probes:
|
|
|
|
readiness:
|
|
|
|
enabled: true
|
|
|
|
type: http
|
|
|
|
path: /status
|
|
|
|
liveness:
|
|
|
|
enabled: true
|
|
|
|
type: http
|
|
|
|
path: /status
|
|
|
|
startup:
|
|
|
|
enabled: true
|
|
|
|
type: http
|
|
|
|
path: /status
|
|
|
|
metrics:
|
|
|
|
main:
|
|
|
|
enabled: true
|
|
|
|
type: "servicemonitor"
|
|
|
|
endpoints:
|
|
|
|
- port: main
|
|
|
|
path: /metrics
|
|
|
|
targetSelector: main
|
|
|
|
prometheusRule:
|
2024-02-25 00:09:05 +00:00
|
|
|
enabled: false
|
2024-03-01 08:35:45 +00:00
|
|
|
|
|
|
|
configmap:
|
|
|
|
dashboard:
|
|
|
|
enabled: true
|
|
|
|
labels:
|
|
|
|
grafana_dashboard: "1"
|
|
|
|
data:
|
|
|
|
bitmagnet.json: >-
|
|
|
|
{{ .Files.Get "dashboard.json" | indent 8 }}
|
|
|
|
datasource:
|
|
|
|
enabled: true
|
|
|
|
labels:
|
|
|
|
grafana_datasources: "1"
|
|
|
|
data:
|
|
|
|
bitmagnetpsql.yaml: |-
|
|
|
|
apiVersion: 1
|
|
|
|
datasources:
|
|
|
|
- name: BitmagnetPostgres
|
|
|
|
type: postgres
|
|
|
|
uid: bitmagnetpostgres
|
|
|
|
url: {{ printf "%s.%s:5432" (.Values.cnpg.main.creds.host | trimAll "\"") .Release.Namespace }}
|
|
|
|
access: proxy
|
|
|
|
user: {{ .Values.cnpg.main.user }}
|
|
|
|
secureJsonData:
|
|
|
|
password: {{ .Values.cnpg.main.creds.password | default "na" }}
|
|
|
|
jsonData:
|
|
|
|
database: {{ .Values.cnpg.main.database }}
|
|
|
|
sslmode: 'disable' # disable/require/verify-ca/verify-full
|
|
|
|
maxOpenConns: 100 # Grafana v5.4+
|
|
|
|
maxIdleConns: 100 # Grafana v5.4+
|
|
|
|
maxIdleConnsAuto: true # Grafana v9.5.1+
|
|
|
|
connMaxLifetime: 14400 # Grafana v5.4+
|
|
|
|
postgresVersion: 1500 # 903=9.3, 904=9.4, 905=9.5, 906=9.6, 1000=10
|
|
|
|
timescaledb: false
|