Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

image pull secrets for flux #2564

Closed
kwontae opened this issue Oct 29, 2019 · 4 comments
Closed

image pull secrets for flux #2564

kwontae opened this issue Oct 29, 2019 · 4 comments
Labels
blocked-needs-validation Issue is waiting to be validated before we can proceed bug

Comments

@kwontae
Copy link

kwontae commented Oct 29, 2019

Describe the bug
Even though I added the imagePullSecrets, flux is have unauthorized issue with my private image registry when scanning for running pod image tags.

To Reproduce
Steps to reproduce the behaviour:
0. What's your setup?

  1. I've created a flux.yaml file using fluxct install.
  2. Changed the flux image repository to my private azure container registry.
  3. Add image pull secrets and policy
imagePullSecrets:
- name: flux
conatiners:
- name: flux
  image: example.azurecr.io/fluxcd/flux:tag
  imagePullPolicy: Always
...
...

Expected behavior
A clear and concise description of what you expected to happen.
When flux scans the pods and look for their image tags to my ACR, it should be able to find it and update accordingly. However, it's having an unauthorized error.

Logs
If applicable, please provide logs of fluxd or the helm-operator. In a standard stand-alone installation of Flux, you'd get this by running kubectl logs -n default deploy/flux.

err="requesting tags: Get https://example.azurecr.io/v2/exampleImage/tags/list: unauthorized: authentication required"

Additional context
Add any other context about the problem here, e.g

  • Flux version: 1.15.0
  • Helm Operator version: N/A
  • Kubernetes version:
  • Git provider: Github Enterprise
  • Container registry provider: Azure Container Registry
@kwontae kwontae added blocked-needs-validation Issue is waiting to be validated before we can proceed bug labels Oct 29, 2019
@lgebhardt
Copy link

@kwontae I was running into this, and added a note to the issue I opened that might help you #2589 (comment)

@2opremio
Copy link
Contributor

2opremio commented Jan 10, 2020

I suspect this could have been caused by the same problem fixed by #2728 . @kwontae could you test whether 2opremio/flux:scope-imagepullsecrets-correctly-a802915a fixes the problem?

@kwontae
Copy link
Author

kwontae commented Jan 18, 2020

hey @2opremio! I don't know why github decided to send me a notification email about this now... Is your fix included in version 1.17.0? That's the current version i'm running for flux.

@2opremio
Copy link
Contributor

@kwontae the fix is in 1.17.1

@kwontae kwontae closed this as completed Feb 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
blocked-needs-validation Issue is waiting to be validated before we can proceed bug
Projects
None yet
Development

No branches or pull requests

3 participants