-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathhelmrelease.yaml
More file actions
151 lines (137 loc) · 3.71 KB
/
Copy pathhelmrelease.yaml
File metadata and controls
151 lines (137 loc) · 3.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
---
# yaml-language-server: $schema=https://raw.githubusercontent.com/bjw-s-labs/helm-charts/common-4.0.1/charts/library/common/values.schema.json
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app sabnzbd
namespace: arr
spec:
interval: 15m
chartRef:
kind: OCIRepository
name: sabnzbd
values:
global:
fullnameOverride: *app
namespace: arr
controllers:
sabnzbd:
enabled: true
type: deployment
annotations:
reloader.stakater.com/auto: "true"
replicas: 1
pod:
securityContext:
runAsUser: 1000
runAsGroup: &group 1000
fsGroup: *group
fsGroupChangePolicy: "OnRootMismatch"
containers:
app:
image:
repository: ghcr.io/home-operations/sabnzbd
tag: 5.0.3
pullPolicy: IfNotPresent
env:
TZ: "${TZ}"
SABNZBD__PORT: &port 8080
SABNZBD__HOST_WHITELIST_ENTRIES: >-
{{ .Release.Name }},
{{ .Release.Name }}.arr,
{{ .Release.Name }}.arr.svc,
{{ .Release.Name }}.arr.svc.cluster.local,
sab.mafyuh.dev
probes:
liveness:
enabled: false
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
resources:
requests:
cpu: 20m
memory: 200Mi
limits:
cpu: 800m
memory: 4000Mi
metrics:
dependsOn: app
image:
repository: ghcr.io/onedr0p/exportarr
tag: v2.3.0
env:
PORT: &metricsPort 9707
URL: "http://{{ .Release.Name }}-app.{{ .Release.Namespace }}.svc.cluster.local:8080"
APIKEY:
valueFrom:
secretKeyRef:
name: recyclarr-secrets
key: SABNZBD_API_KEY
args: ["sabnzbd"]
resources:
requests:
cpu: 10m
memory: 100Mi
limits:
memory: 125Mi
service:
app:
primary: true
controller: sabnzbd
ports:
http:
port: *port
metrics:
controller: sabnzbd
ports:
metrics:
port: *metricsPort
serviceMonitor:
main:
enabled: true
serviceName: '{{ include "bjw-s.common.lib.chart.names.fullname" . }}-metrics'
endpoints:
- port: metrics
scheme: http
path: /metrics
interval: 1m
scrapeTimeout: 10s
route:
internal:
enabled: true
kind: HTTPRoute
hostnames: ["sab.mafyuh.dev"]
rules:
- matches:
- path:
type: PathPrefix
value: /
backendRefs:
- name: sabnzbd-app
port: *port
- matches:
- path:
type: PathPrefix
value: /metrics
backendRefs:
- name: sabnzbd-metrics
port: *metricsPort
parentRefs:
- name: envoy-external
namespace: kube-system
sectionName: https
persistence:
config:
existingClaim: "{{ .Release.Name }}"
globalMounts:
- path: /config
data:
enabled: true
type: nfs
server: "${NAS_IP}"
path: /mnt/thePool/thePoolShare
globalMounts:
- path: /data