Skip to content

Instantly share code, notes, and snippets.

@eh-am
Created September 30, 2018 01:25
Show Gist options
  • Save eh-am/f00d8a1717efdcdbeb50da45431caadc to your computer and use it in GitHub Desktop.
Save eh-am/f00d8a1717efdcdbeb50da45431caadc to your computer and use it in GitHub Desktop.
access minikube in different computer (same network)

on host

$ kubectl proxy --accept-hosts='.*' --address='0.0.0.0'

on client

$ kubectl config set-cluster machineA --server=http://machineA.corporate.domain:8001 --insecure-skip-tls-verify=true $ kubectl config set-context machineA-context --cluster=machineA $ kubectl config use-context machineA-context $ kubectl --namespace=kube-system port-forward nginx-ingress-controller-2wxt6 8080

thanks, kubernetes/kubernetes#46517 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment