Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support --image-mirror-country or --image-repositor like minikube #1753

Closed
chaunceyjiang opened this issue May 9, 2022 · 12 comments
Closed
Assignees

Comments

@chaunceyjiang
Copy link
Member

Hi,i can't download these images k8s.gcr.io/etcd:3.5.1-0,k8s.gcr.io/kube-controller-manager:v1.21.7,k8s.gcr.io/kube-apiserver:v1.21.7

For many mainland users, specifying the --image-mirror-country parameter may be more convenient than specifying their image repository separately.

Such as minikube ,for Chinese mainland users, set it to cn.

minikube --image-mirror-country

@RainbowMango
Copy link
Member

I guess what you are talking about is the karmadactl init flags, right?

I'll look at how minikube use this flag. Does this just affect the images in k8s.gcr.io?

@wuyingjun-lucky
Copy link
Member

wuyingjun-lucky commented May 9, 2022

@RainbowMango @chaunceyjiang Can I do some work on the issue ?

@RainbowMango
Copy link
Member

For this issue, we haven't made final decisions yet.

Anyone can take any issue so long as the Assignees list is still empty.

@wuyingjun-lucky
Copy link
Member

/assign

@chaunceyjiang
Copy link
Member Author

I guess what you are talking about is the karmadactl init flags, right?

yes

@RainbowMango
Copy link
Member

I checked some minikube code, and found that it maintains the available image repositories for different countries:

	// ImageRepositories contains all known image repositoriesAnders F Björklund, 2 years ago: • Add comments to avoid warnings from go lint
	ImageRepositories = map[string][]string{Medya Ghazizadeh, 2 years ago: • Add podman driver (#6515)
		"global": {""},Zhongcheng Lao, 3 years ago: • Triggers repository detection only when --ima…
		"cn":     {"registry.cn-hangzhou.aliyuncs.com/google_containers"},Zhongcheng Lao, 3 years ago: • Select an accessible image repository for som…
	}

And It also checked if the repository is accessible.
https://github.com/kubernetes/minikube/blob/f51fc4ccaccb333c57795dbdb9b138fa09bb3a91/cmd/minikube/cmd/start.go#L868-L906

@wuyingjun-lucky
Copy link
Member

/close
As #1764 closed

@karmada-bot
Copy link
Collaborator

@wuyingjun-lucky: You can't close an active issue/PR unless you authored it or you are a collaborator.

In response to this:

/close
As #1764 closed

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@RainbowMango
Copy link
Member

/close

@wuyingjun-lucky Maybe you can use this command after you become a member of Karmada. You can file an issue for the membership.

@karmada-bot
Copy link
Collaborator

@RainbowMango: Closing this issue.

In response to this:

/close

@wuyingjun-lucky Maybe you can use this command after you become a member of Karmada. You can file an issue for the membership.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

@wuyingjun-lucky
Copy link
Member

/close

@wuyingjun-lucky Maybe you can use this command after you become a member of Karmada. You can file an issue for the membership.

OK, thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants