Access to minikube from external adress

Asking for help? Comment out what you need so we can get more information to help you!

Cluster information:

Kubernetes version:
Cloud being used: using my personal computer with KVM
Installation method: brew install minikube
Host OS: Centos 7.7
CNI and version: 0.4.0
CRI and version: not enabled

I’m running minikube on guest of my machine running on kvm.
but i can only access to service using ‘localhost’ or ‘127.0.0.1’, so only via localhost ip or name.

i can’t access using guest ip adresse, i can also access using minikube ip:
Kubernetes master is running at https://172.17.0.2:8443
KubeDNS is running at https://172.17.0.2:8443/api/v1/namespaces/kube-system/services/kube-dns:dns/proxy

i can’t find any way to access using guest ip.

Thanks

i tried to force kube ip address via .kube/config.
But it was overriden by minikube process when restarting

! Unable to restart cluster, will reset it: getting k8s client: client config: client config: error loading config file “/home/mini/.kube/config”: yaml: line 6: mapping values are not allowed in this context
*
X startup failed: Failed to update kubeconfig file.: could not read config: Error decoding config from data: apiVersion: v1
clusters:

  • cluster:
    certificate-authority: /home/mini/.minikube/ca.crt
    server: https://192.168.122.248:8443
    name: minikube
    contexts:
  • context:
    cluster: minikube
    user: minikube
    name: minikube
    current-context: minikube
    kind: Config
    preferences: {}
    users:
  • name: minikube
    user:
    client-certificate: /home/mini/.minikube/profiles/minikube/client.crt
    client-key: /home/mini/.minikube/profiles/minikube/client.key
    : yaml: line 6: mapping values are not allowed in this context

driver= docker