nwcdheap / kops-cn

AWS中国宁夏区域/北京区域,快速Kops部署K8S集群
Apache License 2.0
121 stars 74 forks source link

aws-iam-authenticator registery 错误. 导致无法下载对应的image #103

Closed rory-ye-nv closed 5 years ago

rory-ye-nv commented 5 years ago

请注意,kops-cn是一个开源项目帮助用户更容易部署kops在AWS中国北京与宁夏区,kops-cn没有侵入式修改上游kops源代码,并且保持跟上游kops版本一致,因此大部分kops-cn遇到的功能性问题都会存在上游kops专案当中,在发布问题的时候请务必确定查看并搜寻kops上游是否有人发布过同样的的问题,这里无法解决kops本身存在的问题或issue,如果它是一个kops本身的issue,请务必发布到上游kops专案的issue当中。

如果你很肯定这个issue只跟kops-cn有关,跟上游kops无关,请填写以下信息帮助我们定位问题与改进这个项目,并且尽可能提供截图给我们。

1. What kops version are you running? The command kops version, will display this information. 1.13.0

2. What Kubernetes version are you running? kubectl version will print the version if a cluster is running or provide the Kubernetes version specified as a kops flag. Client Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.5", GitCommit:"2166946f41b36dea2c4626f90a77706f426cdea2", GitTreeState:"clean", BuildDate:"2019-03-25T15:26:52Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"} Server Version: version.Info{Major:"1", Minor:"13", GitVersion:"v1.13.5", GitCommit:"2166946f41b36dea2c4626f90a77706f426cdea2", GitTreeState:"clean", BuildDate:"2019-03-25T15:19:22Z", GoVersion:"go1.11.5", Compiler:"gc", Platform:"linux/amd64"} 3. What AWS region are you using(Beijing or Ningxia)? Ningxia 4. What commands did you run? What is the simplest way to reproduce this issue?

5. What happened after the commands executed?

6. What did you expect to happen?

7. Please provide the content of your Makefile and how did you run the make command You may want to remove your cluster name and other sensitive information.

8. Anything else do we need to know?

aws-iam-authenticator registery 错误. 导致无法下载对应的image

kubecl -n kube-system get pod aws-iam-authenticator-vgshf -o yaml

  containerStatuses:
  - image: 937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/602401143452.dkr.ecr.us-west-2.amazonaws.com-amazon-aws-iam-authenticator:v0.4.0
    imageID: ""
    lastState: {}
    name: aws-iam-authenticator
    ready: false
    restartCount: 0
    state:
pahud commented 5 years ago

感謝,跟這個PR有關嗎 https://github.com/nwcdlabs/kops-cn/pull/104

已經PR merged,應該很快就會mirror完成。

rory-ye-nv commented 5 years ago

对的,应该可以fix

rory-ye-nv commented 5 years ago

你好,这个image仍然无法pull下来,请问有什么办法可以verify这个image存在么. buildspec.yaml没有log.

937788672844.dkr.ecr.cn-north-1.amazonaws.com.cn/602401143452.dkr.ecr.us-west-2.amazonaws.com-amazon-aws-iam-authenticator:v0.4.0

pahud commented 5 years ago

@ruruiye 最近海外到北京網路不是很好,我正在手動從HK region跑codebuild並且把image推到北京ECR

目前除了真的去docker pull一次之外,暫時沒辦法判斷是否已經push到北京ECR了

https://github.com/nwcdlabs/kops-cn/blob/master/mirror/display-remote-repos.sh 這個腳本可以列出Beijing ECR具體image的路徑,方便docker pull測試。

HK那邊跑完codebuild之後我會comment上來。

rory-ye-nv commented 5 years ago

建议将codebuild的log加入github,https://github.com/jlhood/github-codebuild-logs

pahud commented 5 years ago

@ruruiye 我手動從台灣這邊我自己的laptop跑完了,你試試看吧!

現在海外docker push到北京ECR速度極慢,容易timeout,試過美西,香港,首爾都是如此。

github-codebuild-logs 是一個不錯的作法,我來評估看看。感謝!!

rory-ye-nv commented 5 years ago

谢谢,已修复.kops 1.13.0 k8s 1.13.5 完美运行