You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using blockscout stack with separate api configuration, database migrations handled through a kubernetes job instead of initContainers.
Although initContainers configured properly(using image pull secrets), when using private image repo, this is not the case for kubernetes job.
How to reproduce
Set separateApi: true and use private image repository for the images
The job will not be able to pull images with the following error
Failed to pull image "my_private_repo/blockscout:my_tag": rpc error: code = Unknown desc = failed to pull and unpack image "my_private_repo/blockscout:my_tag": failed to resolve reference "my_private_repo/blockscout:my_tag": pulling from host 'my_private_repo' failed with status code [manifests my_tag]: 401 Unauthorized
Solution
Adding imagePullSecrets in https://github.com/blockscout/helm-charts/blob/main/charts/blockscout-stack/templates/blockscout-migration-job.yaml will done nicely.
...
spec:
template:
spec:
{{- with .Values.imagePullSecrets }}
imagePullSecrets:
{{- toYaml . | nindent 8 }}
{{- end }}
....
The text was updated successfully, but these errors were encountered:
Problem
When using blockscout stack with separate api configuration, database migrations handled through a kubernetes job instead of initContainers.
Although initContainers configured properly(using image pull secrets), when using private image repo, this is not the case for kubernetes job.
How to reproduce
Set
separateApi: true
and use private image repository for the imagesThe job will not be able to pull images with the following error
Failed to pull image "my_private_repo/blockscout:my_tag": rpc error: code = Unknown desc = failed to pull and unpack image "my_private_repo/blockscout:my_tag": failed to resolve reference "my_private_repo/blockscout:my_tag": pulling from host 'my_private_repo' failed with status code [manifests my_tag]: 401 Unauthorized
Solution
Adding imagePullSecrets in
https://github.com/blockscout/helm-charts/blob/main/charts/blockscout-stack/templates/blockscout-migration-job.yaml
will done nicely.The text was updated successfully, but these errors were encountered: