move flaresolverr to helmrelease

This commit is contained in:
Matt Reeves 2025-02-25 23:00:20 -05:00
parent 7805223c56
commit 6465c82db8
4 changed files with 116 additions and 1 deletions
README.md
kubernetes
apps/staging
cluster/production/flux-system

View file

@ -76,7 +76,7 @@ Some good references for how I learned this stuff (other than RTM)
|-------------|----------------|-----------------|--------------|----------------------------------------------|-----------|----------------------------------|
| Arc-Ripper | Optiplex 3050 | Intel i5-6500 | 32 GB DDR4 | 1TB NVMe | Arc A310 | Jellyfin Server, Blu-ray Ripper |
| PVE Node 1 | Custom | Intel i7-9700K | 64 GB DDR4 | NVMe for boot and VMs, 4x4TB HDD RaidZ10 | Nvidia 1660 6GB | Main node with most VMs, NAS |
| PVE Node 2 | Custom | Intel i7-8700K | 64 GB DDR4 | 1x2TB NVMe | Nvidia 1060 GB | More VMs |
| PVE Node 2 | Custom | Intel i7-8700K | 64 GB DDR4 | 1x2TB NVMe | Nvidia 1060 6GB | More VMs |
## 📌 **To-Do**

View file

@ -0,0 +1,85 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: &app flaresolverr
namespace: arr
spec:
interval: 15m
chart:
spec:
chart: app-template
version: 3.7.1
interval: 30m
sourceRef:
kind: HelmRepository
name: bjw-s
namespace: flux-system
install:
remediation:
retries: 3
upgrade:
remediation:
retries: 3
values:
global:
fullnameOverride: *app
namespace: arr
controllers:
flaresolverr:
enabled: true
type: statefulset
annotations:
reloader.stakater.com/auto: "true"
replicas: 1
pod:
securityContext:
runAsUser: &context 1000
runAsGroup: *context
fsGroup: *context
fsGroupChangePolicy: "OnRootMismatch"
dnsPolicy: None
dnsConfig:
nameservers:
- 10.43.0.10
- 1.1.1.1
- 8.8.8.8
containers:
app:
image:
repository: ghcr.io/flaresolverr/flaresolverr
tag: 3.3.21
pullPolicy: IfNotPresent
env:
TZ: "${TZ}"
LOG_LEVEL: info
probes:
liveness:
enabled: false
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
resources:
requests:
cpu: 90m
memory: 128Mi
limits:
memory: 256Mi
service:
app:
primary: true
controller: flaresolverr
ports:
http:
port: 8191

View file

@ -0,0 +1,4 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- flaresolverr/

View file

@ -0,0 +1,26 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: GitRepository
metadata:
name: flux-staging
namespace: flux-system
spec:
interval: 1m0s
ref:
branch: staging
secretRef:
name: flux-system
url: https://git.mafyuh.dev/mafyuh/iac
---
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: flux-staging
namespace: flux-system
spec:
interval: 10m0s
path: ./kubernetes/apps/staging
prune: true
sourceRef:
kind: GitRepository
name: flux-staging