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
{{ message }}
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.
With our new K8s Installation (1.19.4) and Flux (1.21.0) we have problems fetching metadata from docker hub for private images. In the Flux log we can see, that flux find the correct secret and try to use it, but the call ends with access denied. Inside the Deployment, we use the same secret as imagePullSecret and that works fine. The automation for public images works also correct.
Flux-Log ts=2021-01-27T09:13:27.3284659Z caller=warming.go:180 component=warmer canonical_name=index.docker.io/reg1/flux_test auth="{map[docker.io:<registry creds for ro_user@docker.io,cred>]}" err="requesting tags: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"
We have already read other issues with similar problems. Like inside #2589 (comment) recommended we patched the default service account to use the imagepullsecret, but with no positive effect. kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "docker-hub-cred"}]}' -n demo
The text was updated successfully, but these errors were encountered:
The problem is solved. While the normal kubectl deployment accepts docker.io as docker server in the secrect, flux needs a complete URI kubectl create secret docker-registry docker-hub-cred --namespace=demo \ --docker-server=https://index.docker.io/v1/ --docker-username=ro_user --docker-password='ro_pass' --docker-email='dockerhub.ro@mail.de'
With our new K8s Installation (1.19.4) and Flux (1.21.0) we have problems fetching metadata from docker hub for private images. In the Flux log we can see, that flux find the correct secret and try to use it, but the call ends with access denied. Inside the Deployment, we use the same secret as imagePullSecret and that works fine. The automation for public images works also correct.
Setting
Create Secret
kubectl create secret docker-registry docker-hub-cred --namespace=demo \ --docker-server=docker.io --docker-username=ro_user --docker-password='ro_pass' --docker-email='dockerhub.ro@mail.de'
Deployment
HELM Install
Flux-Log
ts=2021-01-27T09:13:27.3284659Z caller=warming.go:180 component=warmer canonical_name=index.docker.io/reg1/flux_test auth="{map[docker.io:<registry creds for ro_user@docker.io,cred>]}" err="requesting tags: errors:\ndenied: requested access to the resource is denied\nunauthorized: authentication required\n"
We have already read other issues with similar problems. Like inside #2589 (comment) recommended we patched the default service account to use the imagepullsecret, but with no positive effect.
kubectl patch serviceaccount default -p '{"imagePullSecrets": [{"name": "docker-hub-cred"}]}' -n demo
The text was updated successfully, but these errors were encountered: