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.
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user