Closed IP14Y3RI closed 1 year ago
Hi @Wnzebkhan, thanks for reporting your issue with minikube.
We have a section on our website of how to use minikube with a VPN, could you take a look at that and see if the steps resolve your issue
https://minikube.sigs.k8s.io/docs/handbook/vpn_and_proxy/#vpn
@spowelljr; I have tried the following things mentioned in docs you linked:
Turn off the VPN => I tried this, but to no avail.
If you have access, whitelist the above IP ranges in your VPN software => Cannot add these, will have to check who I need to ask to have these added. But since turning VPN off didnt help, I am guessing it has nothing to do with the VPN at all.
In your VPN software, select an option similar to βAllow local (LAN) access when using VPNβ (Cisco VPN example) => See point 2.
You may have luck selecting alternate values to the --host-only-cidr and --service-cluster-ip-range flags. => I am not sure what alternate values I should assign for these flags.
I am guessing the reason it is not working is because of the fact that my Docker installation is using WSL2 as back-end and not Hyper-V or some other back-end. Could that be a possible reason?
Edit: I have also noticed that the status of the nodes is NotReady when I have 2 nodes in my cluster. When I start a cluster with 1 node, I still get β This container is having trouble accessing https://k8s.gcr.io
but the status of the node is Ready
and upon running kubectl describe nodes
I do not get the error KubeletNotReady container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
.
Update: So I just found this page which says:
A vanilla minikube installation (minikube start) does not support any NetworkPolicies, since the default CNI, Kindnet, does not support Network Policies, by design.
Furthermore:
However, minikube can support NetworkPolicies if a supported CNI, such as Calico, is installed. In addition, in this scenario both Kubernetes network policy and Calico network policy are supported.
Hence, I have first run the following command to 'install Calico': curl https://docs.projectcalico.org/manifests/calico-typha.yaml -o calico.yaml
after which I deleted my old cluster with minikube delete
and then ran minikube start --nodes=2 --cni calico
.
This initiated a cluster with 2 nodes who had status Ready. However, the message β This container is having trouble accessing https://k8s.gcr.io
upon creating the cluster still appeared.
Apparently, the CNI issue and the β This container is having trouble accessing https://k8s.gcr.io
are two seperate issues.
Not sure if this is related but got a similar message when upgrading to v1.26 WSL2 on Windows16 via Docker
π minikube v1.26.0 on Ubuntu 20.04 (amd64)
π Kubernetes 1.24.1 is now available. If you would like to upgrade, specify: --kubernetes-version=v1.24.1
β¨ Using the docker driver based on existing profile
π Starting control plane node minikube in cluster minikube
π Pulling base image ...
πΎ Downloading Kubernetes v1.23.3 preload ...
> preloaded-images-k8s-v18-v1...: 400.43 MiB / 400.43 MiB 100.00% 14.00 Mi
β Executing "docker container inspect minikube --format={{.State.Status}}" took an unusually long time: 2.475355583s
π‘ Restarting the docker service may improve performance.
π Updating the running docker "minikube" container ...
β This container is having trouble accessing https://k8s.gcr.io
π‘ To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/
π³ Preparing Kubernetes v1.23.3 on Docker 20.10.12 ...
βͺ kubelet.housekeeping-interval=5m
π Verifying Kubernetes components...
βͺ Using image gcr.io/k8s-minikube/storage-provisioner:v5
βͺ Using image kubernetesui/dashboard:v2.6.0
βͺ Using image kubernetesui/metrics-scraper:v1.0.8
π Enabled addons: default-storageclass, storage-provisioner, dashboard
π Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
Also, I'd appreciate if somebody could point me to the issue (if there's one) related to pulling external images. I'm getting a lot of ErrImgPull and as a temporal workaround I'm pulling the images with Docker and adding them to the minikube cluster via minikube image load MyImage
while also changing my image-pull-policy to never.
I saw something about adding a proxy, I went to the docs but I have no idea what to add for the environment variables mentioned there in order to pull from either Docker or somewhere else (I don't even know which port to add to the proxy).
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:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle stale
/lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle stale
Not sure if this is related but got a similar message when upgrading to v1.26 WSL2 on Windows16 via Docker
π minikube v1.26.0 on Ubuntu 20.04 (amd64) π Kubernetes 1.24.1 is now available. If you would like to upgrade, specify: --kubernetes-version=v1.24.1 β¨ Using the docker driver based on existing profile π Starting control plane node minikube in cluster minikube π Pulling base image ... πΎ Downloading Kubernetes v1.23.3 preload ... > preloaded-images-k8s-v18-v1...: 400.43 MiB / 400.43 MiB 100.00% 14.00 Mi β Executing "docker container inspect minikube --format={{.State.Status}}" took an unusually long time: 2.475355583s π‘ Restarting the docker service may improve performance. π Updating the running docker "minikube" container ... β This container is having trouble accessing https://k8s.gcr.io π‘ To pull new external images, you may need to configure a proxy: https://minikube.sigs.k8s.io/docs/reference/networking/proxy/ π³ Preparing Kubernetes v1.23.3 on Docker 20.10.12 ... βͺ kubelet.housekeeping-interval=5m π Verifying Kubernetes components... βͺ Using image gcr.io/k8s-minikube/storage-provisioner:v5 βͺ Using image kubernetesui/dashboard:v2.6.0 βͺ Using image kubernetesui/metrics-scraper:v1.0.8 π Enabled addons: default-storageclass, storage-provisioner, dashboard π Done! kubectl is now configured to use "minikube" cluster and "default" namespace by default
Also, I'd appreciate if somebody could point me to the issue (if there's one) related to pulling external images. I'm getting a lot of ErrImgPull and as a temporal workaround I'm pulling the images with Docker and adding them to the minikube cluster via
minikube image load MyImage
while also changing my image-pull-policy to never.I saw something about adding a proxy, I went to the docs but I have no idea what to add for the environment variables mentioned there in order to pull from either Docker or somewhere else (I don't even know which port to add to the proxy).
I have same image pull problems when running common image even like nginx. I run minikube driven by docker on windows 10. Sometimes it tries several times and fix itself but really annoying sometimes error for pulling.
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:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/remove-lifecycle rotten
/close
Please send feedback to sig-contributor-experience at kubernetes/community.
/lifecycle rotten
The Kubernetes project currently lacks enough active contributors to adequately respond to all issues and PRs.
This bot triages issues according to the following rules:
lifecycle/stale
is appliedlifecycle/stale
was applied, lifecycle/rotten
is appliedlifecycle/rotten
was applied, the issue is closedYou can:
/reopen
/remove-lifecycle rotten
Please send feedback to sig-contributor-experience at kubernetes/community.
/close not-planned
@k8s-triage-robot: Closing this issue, marking it as "Not Planned".
Still facing this issue with gcr.io/k8s-minikube/kicbase:v0.0.30
(running with the docker driver) in WSL2. Any solutions here? :(
/reopen
@Tuanm: You can't reopen an issue/PR unless you authored it or you are a collaborator.
What Happened?
When I run the command
minikube start --nodes=2
I get the following output in the terminal:As a result, when I run
kubectl get nodes
, I get that the nodes I have just created have status NotReady.Upon running
kubectl describe nodes
, I get:As far as I can tell, the clue we need is in the output of the output above: for both nodes it says that
Container runtime network not ready: NetworkReady=false reason:NetworkPluginNotReady message:docker: network plugin is not ready: cni config uninitialized
I have tried install calico and flannel as suggested here but flannel doesnt even complete the installation, whereas calico does finish, but doesnt resolve the problem upon deleting the current cluster and starting a new one.
Maybe relevant:
Attach the log file
log.txt
Operating System
Windows
Driver
Docker