Melek Alan
12/16/2024, 2:20 PMimagePullSecret
to access it. However, the initContainer
configuration doesn't include an option to specify environment variables for imagePullSecrets
.
Is there a way to use a private image for the worker type as the deployment image?
Here is default initContainers
configuration:
initContainers:
{{- if include "worker.baseJobTemplateName" . }}
- name: sync-base-job-template
image: "{{ .Values.worker.image.repository }}:{{ .Values.worker.image.prefectTag }}"
imagePullPolicy: {{ .Values.worker.image.pullPolicy }}
Mitch Nielsen
12/17/2024, 3:05 PMTony Lim
01/24/2025, 6:00 PMimagePullSecrets
in deployment.yaml
, the problem would've been solved.Tony Lim
01/24/2025, 6:01 PMTony Lim
01/24/2025, 6:20 PMBase Job Template
json is is WRONG (Ui -> work pool -> setting -> advance tab)
The "imagePullSecrets": "{{ imagepullsecret }}"
is inserted under job_configuration.job_manifest.....spec.containers[]
, which is not correct, it should be inserted under ...spec
1 level above, so like:
json
"containers": [ ...],
"completions": 1,
"imagePullSecrets": "{{ imagepullsecret }}"
Thanks to @Mauricio Cruz from thread https://prefect-community.slack.com/archives/C04DZJC94DC/p1731435693559059Mitch Nielsen
01/31/2025, 4:14 AMMauricio Cruz
01/31/2025, 3:22 PMJamie Zieziula
01/31/2025, 4:30 PMimagePullSecrets
• the worker init container does not respect the defined imagePullSecrets
• the base job template of the workpool has imagePullSecrets
but the flows that inherit do notJamie Zieziula
02/04/2025, 8:47 PMMauricio Cruz
02/05/2025, 3:19 PMprefect-worker
deployed to my cluster could not start a job from a private registry. The rest of the details are listed in my original post
I was going to refer to docs I used back then, but looks the LLM you're using for docs is down and there's no alternative for a simple searchMitch Nielsen
02/05/2025, 7:03 PMMitch Nielsen
02/05/2025, 7:04 PMworker:
cloudApiConfig:
accountId: sa3ef
workspaceId: dkdkwlshj
config:
workPool: hjmnsdfhjkdfkdkwodkwo
baseJobTemplate:
configuration: |
{
"job_configuration": {
"job_manifest": {
"spec": {
"imagePullSecrets": "my-pull-secret"
}
}
}
}
Jamie Zieziula
02/05/2025, 7:16 PMJamie Zieziula
02/05/2025, 7:44 PM