Skip to content

Error: importing charts: Error: insecure registry is not valid: invalid hostΒ #9884

@ganeshsrvnn

Description

@ganeshsrvnn

What happened:

When using eksctl anywhere import images command to import the images and charts to a private registry with self signed CA where the images are pushed successfully, then helm is asked to log in, and fails due to host is invalid
"Error: importing charts: Error: insecure registry xxx.local/eks-a is not valid: invalid host "xxx.local/eks-a"

What you expected to happen:

Using the eksctl anywhere import images, All the images and helm charts must be pushed to private registry successfully without error.

How to reproduce it:

  • Configure a registry with a private CA
  • Install self signed CA .crt in /etc/docker/certs.d/xxx.local/ca.crt
  • Follow documentation airgapped procedure as far as step 5.
  • The error will occur after the docker images are pushed to the registry.

Anything else we need to know?:

  • My registry use default port 443 and the ca.cert is placed in /etc/docker/certs.d/
  • The registry is password authenticated and hence they are passed in environment variables REGISTRY_USERNAME and REGISTRY_PASSWORD
  • The registry URL is set in env variable REGISTRY_MIRROR_URL
  • I attach the logs with -v 9 verbosity

Environment:

Admin OS: Red Hat Enterprise Linux 9.4 (Plow)
eksctl version: 0.210.0
eksctl-anywhere version: v0.23.0

eks-anwhere-import-logs.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalAn issue, bug or feature request filed from outside the AWS org

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions