move flaresolverr to helmrelease (#830)
Reviewed-on: #830 Co-authored-by: Matt Reeves <admin@mafyuh.io> Co-committed-by: Matt Reeves <admin@mafyuh.io>
This commit is contained in:
parent
ac4679508b
commit
8a7e804764
7 changed files with 117 additions and 54 deletions
|
@ -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 |
|
| 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 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**
|
## 📌 **To-Do**
|
||||||
|
|
|
@ -1,39 +0,0 @@
|
||||||
apiVersion: apps/v1
|
|
||||||
kind: Deployment
|
|
||||||
metadata:
|
|
||||||
name: flaresolverr
|
|
||||||
namespace: arr
|
|
||||||
labels:
|
|
||||||
app: flaresolverr
|
|
||||||
spec:
|
|
||||||
replicas: 1
|
|
||||||
selector:
|
|
||||||
matchLabels:
|
|
||||||
app: flaresolverr
|
|
||||||
template:
|
|
||||||
metadata:
|
|
||||||
labels:
|
|
||||||
app: flaresolverr
|
|
||||||
spec:
|
|
||||||
containers:
|
|
||||||
- name: flaresolverr
|
|
||||||
image: ghcr.io/flaresolverr/flaresolverr:v3.3.21
|
|
||||||
imagePullPolicy: IfNotPresent
|
|
||||||
ports:
|
|
||||||
- containerPort: 8191
|
|
||||||
env:
|
|
||||||
- name: LOG_LEVEL
|
|
||||||
value: "info"
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
memory: "100Mi"
|
|
||||||
cpu: "100m"
|
|
||||||
limits:
|
|
||||||
memory: "300Mi"
|
|
||||||
cpu: "200m"
|
|
||||||
dnsPolicy: None
|
|
||||||
dnsConfig:
|
|
||||||
nameservers:
|
|
||||||
- 10.43.0.10
|
|
||||||
- 1.1.1.1
|
|
||||||
- 8.8.8.8
|
|
85
kubernetes/apps/production/arr/flaresolverr/helmrelease.yaml
Normal file
85
kubernetes/apps/production/arr/flaresolverr/helmrelease.yaml
Normal 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: v3.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
|
|
@ -1,5 +1,4 @@
|
||||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- deployment.yaml
|
- helmrelease.yaml
|
||||||
- service.yaml
|
|
|
@ -1,12 +0,0 @@
|
||||||
apiVersion: v1
|
|
||||||
kind: Service
|
|
||||||
metadata:
|
|
||||||
name: flaresolverr
|
|
||||||
namespace: arr
|
|
||||||
spec:
|
|
||||||
selector:
|
|
||||||
app: flaresolverr
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 8191
|
|
||||||
targetPort: 8191
|
|
4
kubernetes/apps/staging/kustomization.yaml
Normal file
4
kubernetes/apps/staging/kustomization.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- flaresolverr/
|
26
kubernetes/cluster/production/flux-system/staging.yaml
Normal file
26
kubernetes/cluster/production/flux-system/staging.yaml
Normal 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
|
||||||
|
|
Reference in a new issue