pegasus updates

This commit is contained in:
Brad Stein 2025-09-15 19:55:20 -05:00
parent 65de7602c9
commit 33ff3d20aa
4 changed files with 54 additions and 7 deletions

View File

@ -0,0 +1,19 @@
# infrastructure/flux-system/image-automation-pegasus.yaml
apiVersion: image.toolkit.fluxcd.io/v1beta1
kind: ImageUpdateAutomation
metadata:
name: pegasus
namespace: flux-system
spec:
interval: 1m0s
sourceRef:
kind: GitRepository
name: flux-system
git:
commit:
authorEmail: ops@bstein.dev
authorName: flux-bot
messageTemplate: "chore(pegasus): update image to {{range .Updated.Images}}{{.}}{{end}}"
update:
strategy: Setters
path: ./services/pegasus

View File

@ -7,7 +7,6 @@ metadata:
data: data:
PEGASUS_MEDIA_ROOT: "/media" PEGASUS_MEDIA_ROOT: "/media"
PEGASUS_BIND: ":8080" PEGASUS_BIND: ":8080"
# Optional: PEGASUS_COOKIE_DOMAIN
--- ---
@ -22,4 +21,8 @@ data:
mary_grace_allison: "Allison" mary_grace_allison: "Allison"
maddie_rejcek: "Rejcek" maddie_rejcek: "Rejcek"
carol_mcguinness: "McGuinness_90s" carol_mcguinness: "McGuinness_90s"
ed_stein: "Stein_90s" ed_stein: "Stein_90s"
brad_stein: "Stein_90s"
lisa_stein: "Scott"
channa_cox: "Cox"
chelie_sheehan: "Sheehan"

View File

@ -28,7 +28,7 @@ spec:
fsGroupChangePolicy: "OnRootMismatch" fsGroupChangePolicy: "OnRootMismatch"
containers: containers:
- name: pegasus - name: pegasus
image: registry.bstein.dev/pegasus@sha256:fb3ae0577c0d48ebee857123467186526d2ba0fbb982b8f2fdf94b09b62b5ce9 image: registry.bstein.dev/pegasus:1.2.0 # {"$imagepolicy": "jellyfin:pegasus"}
imagePullPolicy: Always imagePullPolicy: Always
command: ["/pegasus"] command: ["/pegasus"]
env: env:
@ -43,17 +43,17 @@ spec:
- name: JELLYFIN_URL - name: JELLYFIN_URL
valueFrom: { secretKeyRef: { name: pegasus-secrets, key: JELLYFIN_URL } } valueFrom: { secretKeyRef: { name: pegasus-secrets, key: JELLYFIN_URL } }
- name: PEGASUS_DEBUG - name: PEGASUS_DEBUG
value: "1" value: "0"
- name: PEGASUS_DRY_RUN - name: PEGASUS_DRY_RUN
value: "1" value: "0"
ports: [{ name: http, containerPort: 8080 }] ports: [{ name: http, containerPort: 8080 }]
readinessProbe: readinessProbe:
httpGet: { path: /metrics, port: http } httpGet: { path: /healthz, port: http }
initialDelaySeconds: 2 initialDelaySeconds: 2
periodSeconds: 5 periodSeconds: 5
timeoutSeconds: 1 timeoutSeconds: 1
livenessProbe: livenessProbe:
httpGet: { path: /metrics, port: http } httpGet: { path: /healthz, port: http }
initialDelaySeconds: 10 initialDelaySeconds: 10
periodSeconds: 10 periodSeconds: 10
timeoutSeconds: 2 timeoutSeconds: 2

View File

@ -0,0 +1,25 @@
# services/pegasus/image.yaml
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImageRepository
metadata:
name: pegasus
namespace: jellyfin
spec:
image: registry.bstein.dev/pegasus
interval: 1m0s
secretRef:
name: zot-regcred
---
apiVersion: image.toolkit.fluxcd.io/v1beta2
kind: ImagePolicy
metadata:
name: pegasus
namespace: jellyfin
spec:
imageRepositoryRef:
name: pegasus
policy:
semver:
range: "1.x"