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

Include registry mirror if specified in addon template yamls #10012

Closed
denverdino opened this issue Dec 21, 2020 · 5 comments
Closed

Include registry mirror if specified in addon template yamls #10012

denverdino opened this issue Dec 21, 2020 · 5 comments
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.

Comments

@denverdino
Copy link
Contributor

Steps to reproduce the issue:

  1. Create minikube with
    $ minikube start --vm=true --image-mirror-country=cn --registry-mirror=https://6udu7vtl.mirror.aliyuncs.com

  2. $ minikube addons enable ingress
    🔎 Verifying ingress addon...

❌ Exiting due to MK_ENABLE: run callbacks: running callbacks: [waiting for app.kubernetes.io/name=ingress-nginx pods: timed out waiting for the condition]

😿 If the above advice does not help, please let us know:
👉 https://github.com/kubernetes/minikube/issues/new/choose

The reason is in https://github.com/kubernetes/minikube/blob/master/deploy/addons/ingress/ingress-dp.yaml.tmpl

Some image from Docker Hub is also using the mirror repo

      image: {{default "jettech" .ImageRepository}}/kube-webhook-certgen:v1.3.0

Full output of minikube start command used, if not already included:

Optional: Full output of minikube logs command:

Current logic for handle Docker Hub image seems incorrect and not leveraging --registry-mirror

Thanks a lot

@priyawadhwa priyawadhwa added the kind/support Categorizes issue or PR as a support question. label Dec 28, 2020
@priyawadhwa priyawadhwa changed the title Failed to load the Docker Hub image from addon template Include registry mirror if specified in addon template yamls Dec 28, 2020
@priyawadhwa priyawadhwa added help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. labels Dec 28, 2020
@priyawadhwa
Copy link

Hey @denverdino thank you for opening this issue, it looks like a bug. We should be handling registry mirror if specified in the addon yamls.

We would do this by adding RegistryMirror to our options for generating the template here:

opts := struct {

And then adding {{.RegistryMirror}} in the correct place in the addon template yamls themselves.

If anyone is interested in fixing this issue, please feel free to take it on by commenting /assign

@sharifelgamal sharifelgamal added the priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. label Feb 24, 2021
@spowelljr spowelljr removed the kind/support Categorizes issue or PR as a support question. label Mar 31, 2021
@spowelljr spowelljr added priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete. and removed priority/important-soon Must be staffed and worked on either currently, or very soon, ideally in time for the next release. labels Jun 2, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle stale
  • Mark this issue or PR as rotten with /lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle stale

@k8s-ci-robot k8s-ci-robot added the lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. label Aug 31, 2021
@k8s-triage-robot
Copy link

The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.

This bot triages issues and PRs according to the following rules:

  • After 90d of inactivity, lifecycle/stale is applied
  • After 30d of inactivity since lifecycle/stale was applied, lifecycle/rotten is applied
  • After 30d of inactivity since lifecycle/rotten was applied, the issue is closed

You can:

  • Mark this issue or PR as fresh with /remove-lifecycle rotten
  • Close this issue or PR with /close
  • Offer to help out with Issue Triage

Please send feedback to sig-contributor-experience at kubernetes/community.

/lifecycle rotten

@k8s-ci-robot k8s-ci-robot added lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. and removed lifecycle/stale Denotes an issue or PR has remained open with no activity and has become stale. labels Sep 30, 2021
@spowelljr spowelljr added lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. and removed lifecycle/rotten Denotes an issue or PR that has aged beyond stale and will be auto-closed. labels Oct 13, 2021
@presztak
Copy link
Member

presztak commented Nov 1, 2021

@denverdino @priyawadhwa

minikube addons enable has registries option, so:
minikube addons enable ingress --registries=IngressController=https://6udu7vtl.mirror.aliyuncs.com
won't be solution for this problem?

@denverdino
Copy link
Contributor Author

@presztak after #12578 been merged. I can close this issue.

So, we will use the mapping file to specify the mirror of addon images for for chinese developer.

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Denotes an issue that needs help from a contributor. Must meet "help wanted" guidelines. kind/bug Categorizes issue or PR as related to a bug. lifecycle/frozen Indicates that an issue or PR should not be auto-closed due to staleness. priority/important-longterm Important over the long term, but may not be staffed and/or may need multiple releases to complete.
Projects
None yet
Development

No branches or pull requests

7 participants