Skip to content

Authentication to Azure Container Registry not working #568

Open
@uveta

Description

@uveta

Describe the Issue
We are using .dockerconfigjson secrets to store credentials to private Azure Container Registry. After upgrade from 1.4.16 to 1.6.0, pods are unable to authenticate to ACR. Error from pod's logs is:

no username present in auth config for server: {REDACTED}.azurecr.io

Steps To Reproduce

  1. Use virtual kubelet 1.6.0
  2. Store ACR credentials in a dockerconfigjson secret, e.g. regcred
  3. Configure pods to use ACR credentials via
imagePullSecrets:
- name: regcred
  1. Trigger scaling event to create pods
  2. Pods are created but report authentication issue

Expected behavior
Pod authenticates to private ACR and ACI is created.

Virtual-kubelet version
1.6.0

Kubernetes version
1.27.3

Additional context
Works as expected when reverted back to 1.4.16

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions