-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Make addon yaml templates image name configurable #10063
Comments
I used the command: minicube cache add registry.cn - hangzhou.aliyuncs.com/google_ containers/nginx-ingress-c ontroller:v0.40.2 Then run the command: minicube cache list Try the command again: minicube addresses enable address result:[spring@bogon .minikube]$ minikube addons enable ingress ❌ 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: |
@springcomefromprogrammingtheworld It's a bug currently I think... you may need to tag the image as You could check the image name by run |
[spring@bogon .minikube]$ kubectl -n kube-system describe deploy ingress-nginx-controller | grep Image |
@springcomefromprogrammingtheworld Currently the template is wrong, it renders |
[spring@bogon .minikube]$ minikube cache list Is that right? A little confused. Are you Chinese? |
run: docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/nginx-ingress-controller:v0.40.2 registry.cn-hangzhou.aliyuncs.com/google_containers/controller:v0.40.2
minikube cache add registry.cn-hangzhou.aliyuncs.com/google_containers/controller:v0.40.2 |
oh my god |
/kind feature |
Can we find a better title for this issue? It's not clear to me what isn't configurable. It's a Go template that can apply nearly any logic you can think of. PR's welcome to adjust the name of the image appropriately. |
The problem has been solved。。。 1.docker pull registry.cn-hangzhou.aliyuncs.com/google_containers/nginx-ingress-controller:v0.40.2 2.docker tag registry.cn-hangzhou.aliyuncs.com/google_containers/nginx-ingress-controller:v0.40.2 us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2 3.minikube cache add us.gcr.io/k8s-artifacts-prod/ingress-nginx/controller:v0.40.2 4.minikube addons enable ingress --alsologtostderr Thank you for your proposal @lingsamuel |
Can't find a simple command line way to config addons image names cuz some addons contains many images... image: {{default "us.gcr.io/k8s-artifacts-prod" .ImageRepository}}/{{default "ingress-nginx/controller:v0.40.2" .Images.IngressController}}
To make all image names configurable, we may need some configs at cluster config/somewhere else. e.g. $ minikube addons images ingress
Addon "ingress" images:
|-------------------|----------------------------------|-----------------------------------|
| IMAGE CONFIG NAME | IMAGE NAME | IMAGE REPOSITORY |
|-------------------|----------------------------------|-----------------------------------|
| IngressController | ingress-nginx/controller:v0.40.2 | |
| IngressController | nginx-ingress-controller:v0.40.2 | registry.cn-hangzhou.aliyuncs.com |
|-------------------|----------------------------------|-----------------------------------| This should be stored system-wide instead of profile and should be related to which image repository being used. $ minikube addons configure-image ingress
Config format is "registry/image-name", divided by comma
-- Enter custom images for "IngressController": registry.cn-hangzhou.aliyuncs.com/nginx-ingress-controller:v0.40.2 |
/cc @tstromberg |
Some registry may have different image name rule, for example:
aliyun ingress image name:
registry.cn-hangzhou.aliyuncs.com/google_containers/nginx-ingress-controller:v0.40.2
, but in the template:minikube/deploy/addons/ingress/ingress-dp.yaml.tmpl
Line 52 in 92511de
Notice the image name
ingress-nginx/controller
andnginx-ingress-controller
.We may need more configurable YAML templates.
The text was updated successfully, but these errors were encountered: