我如何将掌舵图表推送到Amazon ECR

问题描述 投票:0回答:2

我有一个舵图,我想推送到ECR,但我一直点击401 Unauthorized。

$ helm chart list
REF                                         NAME                    VERSION     DIGEST  SIZE        CREATED 
myecr.us-east-2.amazonaws.com/hello-world   hello-world             1.0.0+1     6c7c951 135.3 KiB   23 hours

$ helm chart push myecr.us-east-2.amazonaws.com/hello-world:1.0.0
The push refers to repository [1myecr.us-east-2.amazonaws.com/helloworld]
ref:     myecr.us-east-2.amazonaws.com/hello-world:1.0.0
digest:  6c7c9512d309b04816afd17dcdaaa64d0492550d8e290155973ddab125815da7
size:    135.3 KiB
name:    hello-world
version: 1.0.0+1
Error: unexpected response: 401 Unauthorized

[我也尝试过使用helm registry login myecr.us-east-2.amazonaws.com的掌舵对ECR进行身份验证,但是我从aws sts get-caller-identity获得的凭据无效。

$ aws sts get-caller-identity
{
    "UserId": "<USERID>",
    "Account": "<Account>",
    "Arn": "arn:aws:iam::<Account>:user/foo"
}

$ helm registry login myecr.us-east-2.amazonaws.com
Username: <USERID>
Password: 
Error: login attempt to https://myecr.us-east-2.amazonaws.com/v2/ failed with status: 401 Unauthorized

我的掌舵版本是v3.0.2。舵手不支持将ECR用作图表的注册表吗?

我有一个舵图,我想推送到ECR,但我一直点击401 Unauthorized。 $舵图列表REF NAME VERSION DIGEST SIZE ...

kubernetes-helm oci amazon-ecr helm3
2个回答
1
投票

我找到了答案,所以我在回答自己的问题。


0
投票

检查您是否使用掌舵登录

© www.soinside.com 2019 - 2024. All rights reserved.