feat(maintainerr): deploy for watched-movie cleanup (Plex -> Radarr)
Rule-based deletion of watched movies from Radarr (with files), driven by Maintainerr. Raw manifests + directory-type Argo Application (no Helm). Config on shared plex-data NFS PVC (subPath configs/maintainerr); Recreate strategy since it uses SQLite on RWX NFS. ClusterIP only, no ingress — access via kubectl/k9s port-forward. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
apiVersion: argoproj.io/v1alpha1
|
||||
kind: Application
|
||||
metadata:
|
||||
name: maintainerr
|
||||
namespace: argocd
|
||||
spec:
|
||||
project: default
|
||||
source:
|
||||
repoURL: http://gitea-http.gitea.svc.cluster.local:3000/admin/turingpi.git
|
||||
targetRevision: HEAD
|
||||
path: manifests/maintainerr
|
||||
directory:
|
||||
recurse: false
|
||||
destination:
|
||||
server: https://kubernetes.default.svc
|
||||
namespace: default
|
||||
syncPolicy:
|
||||
automated:
|
||||
prune: true
|
||||
selfHeal: true
|
||||
syncOptions:
|
||||
- CreateNamespace=true
|
||||
- ServerSideApply=true
|
||||
@@ -0,0 +1,63 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: maintainerr
|
||||
namespace: default
|
||||
labels:
|
||||
app: maintainerr
|
||||
spec:
|
||||
replicas: 1
|
||||
# SQLite on the shared NFS PVC: never run two writers at once.
|
||||
strategy:
|
||||
type: Recreate
|
||||
selector:
|
||||
matchLabels:
|
||||
app: maintainerr
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: maintainerr
|
||||
spec:
|
||||
securityContext:
|
||||
runAsUser: 1000
|
||||
runAsGroup: 1000
|
||||
fsGroup: 1000
|
||||
containers:
|
||||
- name: maintainerr
|
||||
image: ghcr.io/maintainerr/maintainerr:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 6246
|
||||
protocol: TCP
|
||||
env:
|
||||
- name: TZ
|
||||
value: "Europe/Amsterdam"
|
||||
volumeMounts:
|
||||
- name: plex-data
|
||||
mountPath: /opt/data
|
||||
subPath: configs/maintainerr
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /api/app/status
|
||||
port: http
|
||||
initialDelaySeconds: 20
|
||||
periodSeconds: 15
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /api/app/status
|
||||
port: http
|
||||
initialDelaySeconds: 60
|
||||
periodSeconds: 30
|
||||
resources:
|
||||
requests:
|
||||
memory: "256Mi"
|
||||
cpu: "100m"
|
||||
limits:
|
||||
memory: "512Mi"
|
||||
cpu: "1000m"
|
||||
volumes:
|
||||
- name: plex-data
|
||||
persistentVolumeClaim:
|
||||
claimName: plex-data
|
||||
@@ -0,0 +1,17 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: maintainerr
|
||||
namespace: default
|
||||
labels:
|
||||
app: maintainerr
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 6246
|
||||
targetPort: http
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app: maintainerr
|
||||
Reference in New Issue
Block a user