Skip to content

Instantly share code, notes, and snippets.

@tamalsaha
Last active March 12, 2018 18:13
Show Gist options
  • Save tamalsaha/81a11125204d8f3f49c59f7e07954e0c to your computer and use it in GitHub Desktop.
Save tamalsaha/81a11125204d8f3f49c59f7e07954e0c to your computer and use it in GitHub Desktop.
Minikube Webhook

https://stackoverflow.com/questions/9537751/virtualbox-port-forward-from-guest-to-host

To get to the host machine from the VM, the IP is 10.0.2.2 (by convention)

apiVersion: v1
kind: Service
metadata:
  name: external-ip
spec:
  ports:
  - name: app
    port: 80
    protocol: TCP
    targetPort: 9855
  clusterIP: None
  type: ClusterIP
---
apiVersion: v1
kind: Endpoints
metadata:
  name: external-ip
subsets:
- addresses:
  # list all external ips for this service
  - ip: 172.17.0.5
  ports:
  - name: app
    port: 9855
    protocol: TCP
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment