[anshuman@localhost minik8]$ minikube tunnel
Status:
machine: minikube
pid: 127643
route: 10.96.0.0/12 -> 192.168.49.2
minikube: Running
services: [mongo-express-service]
errors:
minikube: no errors
router: no errors
loadbalancer emulator: no errors```
I am trying to use minikube tunnel to access my pod’s homepage
with tunnel command i got the external ip
[anshuman@localhost minik8]$ kubectl get svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 <none> 443/TCP 11m
mongo-express-service LoadBalancer 10.111.17.244 10.111.17.244 8081:30000/TCP 9m3s
mongodb-service ClusterIP 10.107.38.118 <none> 27017/TCP 9m10s
[anshuman@localhost minik8]$
both of these ip are accessible by local vm but not by my host windows mahcine
I have configured the network settings in vmware to Briged Mode
I can ping my fedora vm but not my fedora minikube -_-
[C:~]$ ping 192.168.29.3
Pinging 192.168.29.3 with 32 bytes of data:
Reply from 192.168.29.3: bytes=32 time<1ms TTL=64
Reply from 192.168.29.3: bytes=32 time<1ms TTL=64
Reply from 192.168.29.3: bytes=32 time<1ms TTL=64
Reply from 192.168.29.3: bytes=32 time<1ms TTL=64
Ping statistics for 192.168.29.3:
Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 0ms, Maximum = 0ms, Average = 0ms
[C:~]$
[C:~]$ ping 10.111.17.244
Pinging 10.111.17.244 with 32 bytes of data:
Request timed out.
still I cannot ping!
I would also like to tell that I have disabled firewall on vm and removed selinux and iptables
I’m pretty new to k8 and networking configs, hope anyone can guide me to the answer
Also I have configured IP in my routed DHCP list so the ip’s are now static .
minikube service <service name did not work for me>
The one answer I got online was using minikube service service-name
[anshuman@localhost minik8]$ minikube service mongodb-service
|-----------|-----------------|-------------|--------------|
| NAMESPACE | NAME | TARGET PORT | URL |
| --- | --- | --- | --- |
| default | mongodb-service | | No node port |
| ----------- | ----------------- | ------------- | -------------- |
* service default/mongodb-service has no node port
! Services [default/mongodb-service] have type "ClusterIP" not meant to be exposed, however for local development minikube allows you to access this !
* Starting tunnel for service mongodb-service.
|-----------|-----------------|-------------|------------------------|
| NAMESPACE | NAME | TARGET PORT | URL |
|-----------|-----------------|-------------|------------------------|
| default | mongodb-service | | http://127.0.0.1:33785 |
|-----------|-----------------|-------------|------------------------|
* Opening service default/mongodb-service in default browser...
/usr/bin/xdg-open: line 1045: www-browser: command not found
/usr/bin/xdg-open: line 1045: links2: command not found
/usr/bin/xdg-open: line 1045: elinks: command not found
/usr/bin/xdg-open: line 1045: links: command not found
/usr/bin/xdg-open: line 1045: lynx: command not found
Anshuman is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1