Skip to content

Minikube service <servicename> and ingress both are not working on windows 11 #13823

Closed as not planned
@hnviradiya

Description

What Happened?

I simply followed following steps. I am using windows 11.

https://kubernetes.io/docs/tasks/access-application-cluster/ingress-minikube/

From above link I executed exact steps as following.

  1. minikube addons enable ingress
  2. kubectl create deployment web --image=gcr.io/google-samples/hello-app:1.0
  3. kubectl expose deployment web --type=NodePort --port=8080
  4. minikube service web

Here at 4th step browser hangs and times out (below screenshot of browser opened by minikube service web).

image

Following is the screenshot when I try to curl url given by minikube service web --url

image

I tried posting on stackoverflow, but hasn't been solved yet. I even formatted my entire pc and installed everything fresh. But nothing worked. I am unable to find any open issue. Sorry if there is already open item, please provide me link to that.

https://stackoverflow.com/questions/71538136/err-connection-timed-out-kubernetes-minikube-service

minikube service web --alsologtostderr
I0321 18:31:49.561082    9592 out.go:297] Setting OutFile to fd 92 ...
I0321 18:31:49.562083    9592 out.go:344] TERM=,COLORTERM=, which probably does not support color
I0321 18:31:49.562083    9592 out.go:310] Setting ErrFile to fd 96...
I0321 18:31:49.563082    9592 out.go:344] TERM=,COLORTERM=, which probably does not support color
W0321 18:31:49.572105    9592 root.go:293] Error reading config file at C:\Users\meera\.minikube\config\config.json: open C:\Users\meera\.minikube\config\config.json: The system cannot find the file specified.
I0321 18:31:49.573081    9592 mustload.go:65] Loading cluster: minikube
I0321 18:31:49.574081    9592 config.go:176] Loaded profile config "minikube": Driver=docker, ContainerRuntime=docker, KubernetesVersion=v1.23.3
I0321 18:31:49.583112    9592 cli_runner.go:133] Run: docker container inspect minikube --format={{.State.Status}}
I0321 18:31:50.509241    9592 host.go:66] Checking if "minikube" exists ...
I0321 18:31:50.514276    9592 cli_runner.go:133] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "8443/tcp") 0).HostPort}}'" minikube
I0321 18:31:51.404779    9592 api_server.go:165] Checking apiserver status ...
I0321 18:31:51.411356    9592 ssh_runner.go:195] Run: sudo pgrep -xnf kube-apiserver.*minikube.*
I0321 18:31:51.415825    9592 cli_runner.go:133] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0321 18:31:52.332336    9592 sshutil.go:53] new ssh client: &{IP:127.0.0.1 Port:50293 SSHKeyPath:C:\Users\meera\.minikube\machines\minikube\id_rsa Username:docker}
I0321 18:31:52.465183    9592 ssh_runner.go:235] Completed: sudo pgrep -xnf kube-apiserver.*minikube.*: (1.0538263s)
I0321 18:31:52.471316    9592 ssh_runner.go:195] Run: sudo egrep ^[0-9]+:freezer: /proc/1676/cgroup
I0321 18:31:52.481738    9592 api_server.go:181] apiserver freezer: "19:freezer:/docker/e1250b013fbf7afe0e41b1c600c0a987db6833698eed685e67fd4fbdc56854f9/kubepods/burstable/podcd6e47233d36a9715b0ab9632f871843/b4bb5dcde9c8db0e0be23034cfa9d29d882b013264621209b92a7def9d496df5"
I0321 18:31:52.488336    9592 ssh_runner.go:195] Run: sudo cat /sys/fs/cgroup/freezer/docker/e1250b013fbf7afe0e41b1c600c0a987db6833698eed685e67fd4fbdc56854f9/kubepods/burstable/podcd6e47233d36a9715b0ab9632f871843/b4bb5dcde9c8db0e0be23034cfa9d29d882b013264621209b92a7def9d496df5/freezer.state
I0321 18:31:52.498657    9592 api_server.go:203] freezer state: "THAWED"
I0321 18:31:52.498657    9592 api_server.go:240] Checking apiserver healthz at https://127.0.0.1:50297/healthz ...
I0321 18:31:52.509567    9592 api_server.go:266] https://127.0.0.1:50297/healthz returned 200:
ok
I0321 18:31:52.509567    9592 host.go:66] Checking if "minikube" exists ...
I0321 18:31:52.514810    9592 cli_runner.go:133] Run: docker container inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}" minikube
I0321 18:31:53.475369    9592 service.go:214] Found service: &Service{ObjectMeta:{web  default  8522fc44-5589-44cc-8a71-241af528ac61 1131 0 2022-03-21 18:06:11 +0530 IST <nil> <nil> map[app:web] map[] [] []  [{kubectl-expose Update v1 2022-03-21 18:06:11 +0530 IST FieldsV1 {"f:metadata":{"f:labels":{".":{},"f:app":{}}},"f:spec":{"f:externalTrafficPolicy":{},"f:internalTrafficPolicy":{},"f:ports":{".":{},"k:{\"port\":8080,\"protocol\":\"TCP\"}":{".":{},"f:port":{},"f:protocol":{},"f:targetPort":{}}},"f:selector":{},"f:sessionAffinity":{},"f:type":{}}} }]},Spec:ServiceSpec{Ports:[]ServicePort{ServicePort{Name:,Protocol:TCP,Port:8080,TargetPort:{0 8080 },NodePort:31935,AppProtocol:nil,},},Selector:map[string]string{app: web,},ClusterIP:10.106.239.80,Type:NodePort,ExternalIPs:[],SessionAffinity:None,LoadBalancerIP:,LoadBalancerSourceRanges:[],ExternalName:,ExternalTrafficPolicy:Cluster,HealthCheckNodePort:0,PublishNotReadyAddresses:false,SessionAffinityConfig:nil,IPFamilyPolicy:*SingleStack,ClusterIPs:[10.106.239.80],IPFamilies:[IPv4],AllocateLoadBalancerNodePorts:nil,LoadBalancerClass:nil,InternalTrafficPolicy:*Cluster,},Status:ServiceStatus{LoadBalancer:LoadBalancerStatus{Ingress:[]LoadBalancerIngress{},},Conditions:[]Condition{},},}
I0321 18:31:53.483849    9592 service.go:214] Found service: &Service{ObjectMeta:{web  default  8522fc44-5589-44cc-8a71-241af528ac61 1131 0 2022-03-21 18:06:11 +0530 IST <nil> <nil> map[app:web] map[] [] []  [{kubectl-expose Update v1 2022-03-21 18:06:11 +0530 IST FieldsV1 {"f:metadata":{"f:labels":{".":{},"f:app":{}}},"f:spec":{"f:externalTrafficPolicy":{},"f:internalTrafficPolicy":{},"f:ports":{".":{},"k:{\"port\":8080,\"protocol\":\"TCP\"}":{".":{},"f:port":{},"f:protocol":{},"f:targetPort":{}}},"f:selector":{},"f:sessionAffinity":{},"f:type":{}}} }]},Spec:ServiceSpec{Ports:[]ServicePort{ServicePort{Name:,Protocol:TCP,Port:8080,TargetPort:{0 8080 },NodePort:31935,AppProtocol:nil,},},Selector:map[string]string{app: web,},ClusterIP:10.106.239.80,Type:NodePort,ExternalIPs:[],SessionAffinity:None,LoadBalancerIP:,LoadBalancerSourceRanges:[],ExternalName:,ExternalTrafficPolicy:Cluster,HealthCheckNodePort:0,PublishNotReadyAddresses:false,SessionAffinityConfig:nil,IPFamilyPolicy:*SingleStack,ClusterIPs:[10.106.239.80],IPFamilies:[IPv4],AllocateLoadBalancerNodePorts:nil,LoadBalancerClass:nil,InternalTrafficPolicy:*Cluster,},Status:ServiceStatus{LoadBalancer:LoadBalancerStatus{Ingress:[]LoadBalancerIngress{},},Conditions:[]Condition{},},}
I0321 18:31:53.484365    9592 host.go:66] Checking if "minikube" exists ...
I0321 18:31:53.491643    9592 cli_runner.go:133] Run: docker container inspect -f "{{range .NetworkSettings.Networks}}{{.IPAddress}},{{.GlobalIPv6Address}}{{end}}" minikube
I0321 18:31:54.396006    9592 cli_runner.go:133] Run: docker container inspect -f "'{{(index (index .NetworkSettings.Ports "22/tcp") 0).HostPort}}'" minikube
I0321 18:31:55.306620    9592 out.go:176] * Starting tunnel for service web.
* Starting tunnel for service web.
I0321 18:31:56.308200    9592 out.go:176] * Opening service default/web in default browser...
* Opening service default/web in default browser...
W0321 18:31:56.574540    9592 out.go:241] ! Because you are using a Docker driver on windows, the terminal needs to be open to run it.
! Because you are using a Docker driver on windows, the terminal needs to be open to run it.

Attach the log file

log.txt

Operating System

Windows

Driver

Docker

Metadata

Assignees

No one assigned

    Labels

    co/serviceissues related to the service featurekind/supportCategorizes issue or PR as a support question.lifecycle/rottenDenotes an issue or PR that has aged beyond stale and will be auto-closed.priority/awaiting-more-evidenceLowest priority. Possibly useful, but not yet enough support to actually get it done.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions