小编man*_*oza的帖子

如何将舵图推送到 Amazon ECR

我有一个舵图,我想推送到 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
Run Code Online (Sandbox Code Playgroud)

我还尝试使用 helm 对​​ ECR 进行身份验证,helm registry login myecr.us-east-2.amazonaws.com但我从中获得的凭据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 …
Run Code Online (Sandbox Code Playgroud)

amazon-ecr kubernetes-helm

2
推荐指数
1
解决办法
3317
查看次数

标签 统计

amazon-ecr ×1

kubernetes-helm ×1