karmada-io / karmada

Open, Multi-Cloud, Multi-Cluster Kubernetes Orchestration
https://karmada.io
Apache License 2.0
4.11k stars 803 forks source link

hack/local-up-karmada.sh pull etccd image timeout #3592

Closed BUPT-wxq closed 11 months ago

BUPT-wxq commented 11 months ago

What happened: I use local-up-karmada.sh to create mutil clusters. I get this error. wait the etcd ready... error: no matching resources found kubectl --context=karmada-host wait --for=condition=Ready --timeout=30s pods -l app=etcd -n karmada-system failed, retrying(1 times) What you expected to happen what should i do to slove this problem How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment: mac os m2

BUPT-wxq commented 11 months ago

Failed to pull image "registry.k8s.io/etcd:3.5.3-0": rpc error: code = Unknown desc = failed to pull and unpack image "registry.k8s.io/etcd:3.5.3-0": failed to resolve reference "registry.k8s.io/etcd:3.5.3-0": failed to do request: Head "https://asia-east1-docker.pkg.dev/v2/k8s-artifacts-prod/images/etcd/manifests/3.5.3-0": net/http: TLS handshake timeou

Vacant2333 commented 11 months ago

you may need provide more information about wait the etcd ready.about the pull image problem, try more times or use a proxy for that

yike21 commented 11 months ago

It's because your host can't pull image from registry.k8s.io. This document is helpful. @BUPT-wxq

sed -i'' -e "s#registry.k8s.io#registry.aliyuncs.com/google_containers#g" artifacts/deploy/karmada-etcd.yaml
sed -i'' -e "s#registry.k8s.io#registry.aliyuncs.com/google_containers#g" artifacts/deploy/karmada-apiserver.yaml
sed -i'' -e "s#registry.k8s.io#registry.aliyuncs.com/google_containers#g" artifacts/deploy/kube-controller-manager.yaml
BUPT-wxq commented 11 months ago

It's because your host can't pull image from registry.k8s.io. This document is helpful. @BUPT-wxq

sed -i'' -e "s#registry.k8s.io#registry.aliyuncs.com/google_containers#g" artifacts/deploy/karmada-etcd.yaml
sed -i'' -e "s#registry.k8s.io#registry.aliyuncs.com/google_containers#g" artifacts/deploy/karmada-apiserver.yaml
sed -i'' -e "s#registry.k8s.io#registry.aliyuncs.com/google_containers#g" artifacts/deploy/kube-controller-manager.yaml

thanks,it works out.

RainbowMango commented 11 months ago

Thanks @Vacant2333 @yike21 for your help. /remove-kind bug /kind question /close

karmada-bot commented 11 months ago

@RainbowMango: Closing this issue.

In response to [this](https://github.com/karmada-io/karmada/issues/3592#issuecomment-1566746677): >Thanks @Vacant2333 @yike21 for your help. >/remove-kind bug >/kind question >/close Instructions for interacting with me using PR comments are available [here](https://git.k8s.io/community/contributors/guide/pull-requests.md). If you have questions or suggestions related to my behavior, please file an issue against the [kubernetes/test-infra](https://github.com/kubernetes/test-infra/issues/new?title=Prow%20issue:) repository.