-
Notifications
You must be signed in to change notification settings - Fork 5k
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
Starting minikube with a custom kube-apiserver image #8421
Comments
@yuvalavra there is a way to provide your own image registry to minikube, but minikube will look for same image and tag that it expects for each kuberentes version, but if you have your own custom image with same name:tag minikube will use that
|
So basically you will have to use a custom image repository. You will need to upload all the official images there. Then tag your custom apiserver image to have the same name:tag as the official image for the k8s version you are using and upload that. minikube will then use your custom apiserver image. |
Got it, thanks |
@yuvalavra - Please let us know if the solution proposed above works for you. |
There was an issue (#4104) filed to pull images using tag@hash which was never fixed. That would have made the above workaround unusable. Just an FYI. |
Thanks @prasadkatti. I eventually opted to replace the apiserver on the run through the kubelet's manifest directory. |
@yuvalavra do you mind sharing what you did this might be helpful to other users ? or potentially we can add it to our advanced tutorials https://minikube.sigs.k8s.io/docs/tutorials/ |
@medyagh Gladly, but do know it's a bit hacky and I have no idea whether it'll work for all minikube/k8s versions.
This will only work if the minikube version deploys the apiserver as a static pod, I don't know if all versions do. |
I would like to test a custom kube-apiserver with minikube, is there a way to configure minikube to use my image instead of the default one (
k8s.gcr.io/kube-apiserver-amd64:$version
)?Thanks
The text was updated successfully, but these errors were encountered: