diff --git a/infrastructure/flux-system/image-automation-pegasus.yaml b/infrastructure/flux-system/image-automation-pegasus.yaml new file mode 100644 index 0000000..222461a --- /dev/null +++ b/infrastructure/flux-system/image-automation-pegasus.yaml @@ -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 diff --git a/services/pegasus/configmap.yaml b/services/pegasus/configmap.yaml index 69b1751..799b11a 100644 --- a/services/pegasus/configmap.yaml +++ b/services/pegasus/configmap.yaml @@ -7,7 +7,6 @@ metadata: data: PEGASUS_MEDIA_ROOT: "/media" PEGASUS_BIND: ":8080" - # Optional: PEGASUS_COOKIE_DOMAIN --- @@ -22,4 +21,8 @@ data: mary_grace_allison: "Allison" maddie_rejcek: "Rejcek" carol_mcguinness: "McGuinness_90s" - ed_stein: "Stein_90s" \ No newline at end of file + ed_stein: "Stein_90s" + brad_stein: "Stein_90s" + lisa_stein: "Scott" + channa_cox: "Cox" + chelie_sheehan: "Sheehan" diff --git a/services/pegasus/deployment.yaml b/services/pegasus/deployment.yaml index 1a4b7eb..61ed5be 100644 --- a/services/pegasus/deployment.yaml +++ b/services/pegasus/deployment.yaml @@ -28,7 +28,7 @@ spec: fsGroupChangePolicy: "OnRootMismatch" containers: - name: pegasus - image: registry.bstein.dev/pegasus@sha256:fb3ae0577c0d48ebee857123467186526d2ba0fbb982b8f2fdf94b09b62b5ce9 + image: registry.bstein.dev/pegasus:1.2.0 # {"$imagepolicy": "jellyfin:pegasus"} imagePullPolicy: Always command: ["/pegasus"] env: @@ -43,17 +43,17 @@ spec: - name: JELLYFIN_URL valueFrom: { secretKeyRef: { name: pegasus-secrets, key: JELLYFIN_URL } } - name: PEGASUS_DEBUG - value: "1" + value: "0" - name: PEGASUS_DRY_RUN - value: "1" + value: "0" ports: [{ name: http, containerPort: 8080 }] readinessProbe: - httpGet: { path: /metrics, port: http } + httpGet: { path: /healthz, port: http } initialDelaySeconds: 2 periodSeconds: 5 timeoutSeconds: 1 livenessProbe: - httpGet: { path: /metrics, port: http } + httpGet: { path: /healthz, port: http } initialDelaySeconds: 10 periodSeconds: 10 timeoutSeconds: 2 diff --git a/services/pegasus/image.yaml b/services/pegasus/image.yaml new file mode 100644 index 0000000..1d891ff --- /dev/null +++ b/services/pegasus/image.yaml @@ -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"