-
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
Flag "image-repository" prevents kube-proxy pod from running #10680
Comments
Additional info kubectl describe storage-provision -n kube-system storage-provision_kubelet.log |
That error is clearly what's causing the kube-proxy pod to crash. I wonder if we're not mounting in that binary properly in certain cases? |
@sharifelgamal I had noticed that as well at one point, but I guess I forgot about it. Would I expect to find that binary on the Minikube container (currently I don't see it)? |
@clamprecht01 is there a reason you are providing your own --base-image ? |
/triage needs-information |
I found that the core issue was actually related to the kube-proxy pod was using the kube-scheduler image. Bad kube proxy output (offline): kubectl describe pod kube-proxy-zxv2w -n kube-system | select-string "Image"
Good kube proxy output (online): kubectl describe pod kube-proxy-lmx55 -n kube-system | Select-String "Image"
**Note: |
I have to use the --base-image flag or else the creation step fails. Even though this step isn't detailed documentation, I found another ticket that informed me of this flag "
|
Found that issue was either with:
Closing issue. |
Note: Eventual goal of this environment is for an entirely air-gapped minikube environment with Ingress addon enabled. Without "image-repository" flag, minikube starts and runs, but we don't have the "ingress" addon enabled (which we need). Solution to install "ingress" addon from offline source was taken from PR-9551.
Pre-requisites:
Minikube start command:
minikube start --vm-driver=docker --base-image="<local_docker_registry>:5000/gcr.io/k8s-minikube/kicbase:latest" --insecure-registry="<local_docker_registry>:5000"
Note: Minikube will start correctly with above command
Steps to reproduce the issue:
PS C:> kubectl get pods -A (without image-repository):
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-74ff55c5b-4rhr6 1/1 Running 0 2m1s
kube-system etcd-minikube 1/1 Running 0 2m14s
kube-system kube-apiserver-minikube 1/1 Running 0 2m14s
kube-system kube-controller-manager-minikube 1/1 Running 0 2m14s
kube-system kube-proxy-gk8km 1/1 Running 0 2m1s
kube-system kube-scheduler-minikube 1/1 Running 0 2m14s
kube-system storage-provisioner 1/1 Running 1 2m12s
PS C:> kubectl get pods -A (with image-repository flag):
PS C:\minikube_reqd_images> kubectl get pods -A
NAMESPACE NAME READY STATUS RESTARTS AGE
kube-system coredns-5b77899479-x68gr 1/1 Running 0 69s
kube-system etcd-minikube 1/1 Running 2 88s
kube-system kube-apiserver-minikube 1/1 Running 0 2m8s
kube-system kube-controller-manager-minikube 1/1 Running 1 88s
kube-system kube-proxy-98rmh 0/1 CrashLoopBackOff 3 58s
kube-system kube-scheduler-minikube 1/1 Running 0 2m8s
kube-system storage-provisioner 1/1 Running 4 9m2s
Full output of
minikube start
command used, if not already included:Attached log files:
minikube start --vm-driver=docker --base-image="<local_docker_registry>:5000/gcr.io/k8s-minikube/kicbase:latest" --insecure-registry="<local_docker_registry>:5000" --image-repository="<local_docker_registry>:5000" >>
minikube_start_not_working.log
minikube start --vm-driver=docker --base-image="<local_docker_registry>:5000/gcr.io/k8s-minikube/kicbase:latest" --insecure-registry="<local_docker_registry>:5000" >> minikube_start_working.log
Optional: Full output of
minikube logs
command:The text was updated successfully, but these errors were encountered: