Compare commits

...

3 Commits
main ... main

Author SHA1 Message Date
Platform Engineer
70ad508180 fix(myorg-assistant): add WEB_SECRET_KEY env to cronjobs to stop pydantic Settings validation crash 2026-07-11 23:51:39 +00:00
Platform Engineer
aab38aa67b fix(myorg-assistant): point cronjobs at registry image + add imagePullSecrets
CronJob pods were stuck in ImagePullBackOff because they referenced
the local-only image 'myorg-assistant:latest' which is not present
on the node. Switch all 5 cronjobs to the Gitea registry image
git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
(matching the Deployment), set imagePullPolicy: Always, and add
imagePullSecrets: gitea-registry so they can authenticate to the
private registry.
2026-07-06 12:39:51 +00:00
Platform Engineer
962ffd5200 fix(argocd): add ignoreDifferences to root app to stop Application CRD drift loop
The k3s-cluster-root app-of-apps has been in a continuous Synced<->OutOfSync
oscillation (489 transitions in 24h). Each cycle, ArgoCD syncs the 'argocd'
Application CRD, succeeds, then immediately detects drift because ArgoCD
adds status/operation fields to Application resources at runtime.

Adding ignoreDifferences for /status and /operation on Application resources
stops the drift loop while keeping the app-of-apps functional.
2026-07-06 12:01:36 +00:00
6 changed files with 51 additions and 10 deletions

View File

@@ -22,3 +22,9 @@ spec:
selfHeal: true selfHeal: true
syncOptions: syncOptions:
- CreateNamespace=false - CreateNamespace=false
ignoreDifferences:
- group: argoproj.io
kind: Application
jsonPointers:
- /status
- /operation

View File

@@ -22,10 +22,12 @@ spec:
job: deadline-checker job: deadline-checker
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: deadline-checker - name: deadline-checker
image: myorg-assistant:latest image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: IfNotPresent imagePullPolicy: Always
command: command:
- python - python
- run_job.py - run_job.py
@@ -51,6 +53,11 @@ spec:
secretKeyRef: secretKeyRef:
name: myorg-assistant-secret name: myorg-assistant-secret
key: LITELLM_API_KEY key: LITELLM_API_KEY
- name: WEB_SECRET_KEY
valueFrom:
secretKeyRef:
name: myorg-assistant-secret
key: WEB_SECRET_KEY
volumeMounts: volumeMounts:
- name: myorg-data - name: myorg-data
mountPath: /data/myorg mountPath: /data/myorg

View File

@@ -22,10 +22,12 @@ spec:
job: evening-summary job: evening-summary
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: evening-summary - name: evening-summary
image: myorg-assistant:latest image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: IfNotPresent imagePullPolicy: Always
command: command:
- python - python
- run_job.py - run_job.py
@@ -51,6 +53,11 @@ spec:
secretKeyRef: secretKeyRef:
name: myorg-assistant-secret name: myorg-assistant-secret
key: LITELLM_API_KEY key: LITELLM_API_KEY
- name: WEB_SECRET_KEY
valueFrom:
secretKeyRef:
name: myorg-assistant-secret
key: WEB_SECRET_KEY
volumeMounts: volumeMounts:
- name: myorg-data - name: myorg-data
mountPath: /data/myorg mountPath: /data/myorg

View File

@@ -22,10 +22,12 @@ spec:
job: git-sync job: git-sync
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: git-sync - name: git-sync
image: myorg-assistant:latest image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: IfNotPresent imagePullPolicy: Always
command: command:
- python - python
- run_job.py - run_job.py
@@ -66,6 +68,11 @@ spec:
secretKeyRef: secretKeyRef:
name: myorg-assistant-secret name: myorg-assistant-secret
key: LITELLM_API_KEY key: LITELLM_API_KEY
- name: WEB_SECRET_KEY
valueFrom:
secretKeyRef:
name: myorg-assistant-secret
key: WEB_SECRET_KEY
volumeMounts: volumeMounts:
- name: myorg-data - name: myorg-data
mountPath: /data/myorg mountPath: /data/myorg

View File

@@ -22,10 +22,12 @@ spec:
job: morning-briefing job: morning-briefing
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: morning-briefing - name: morning-briefing
image: myorg-assistant:latest image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: IfNotPresent imagePullPolicy: Always
command: command:
- python - python
- run_job.py - run_job.py
@@ -58,6 +60,11 @@ spec:
secretKeyRef: secretKeyRef:
name: myorg-assistant-secret name: myorg-assistant-secret
key: LITELLM_API_KEY key: LITELLM_API_KEY
- name: WEB_SECRET_KEY
valueFrom:
secretKeyRef:
name: myorg-assistant-secret
key: WEB_SECRET_KEY
volumeMounts: volumeMounts:
- name: myorg-data - name: myorg-data
mountPath: /data/myorg mountPath: /data/myorg

View File

@@ -22,10 +22,12 @@ spec:
job: waiting-followup job: waiting-followup
spec: spec:
restartPolicy: OnFailure restartPolicy: OnFailure
imagePullSecrets:
- name: gitea-registry
containers: containers:
- name: waiting-followup - name: waiting-followup
image: myorg-assistant:latest image: git.rogi.casa/roger/myorg-assistant/myorg-assistant:fcf79bf
imagePullPolicy: IfNotPresent imagePullPolicy: Always
command: command:
- python - python
- run_job.py - run_job.py
@@ -51,6 +53,11 @@ spec:
secretKeyRef: secretKeyRef:
name: myorg-assistant-secret name: myorg-assistant-secret
key: LITELLM_API_KEY key: LITELLM_API_KEY
- name: WEB_SECRET_KEY
valueFrom:
secretKeyRef:
name: myorg-assistant-secret
key: WEB_SECRET_KEY
volumeMounts: volumeMounts:
- name: myorg-data - name: myorg-data
mountPath: /data/myorg mountPath: /data/myorg