diff options
author | Chuck Lantz <clantz@microsoft.com> | 2022-08-11 23:11:00 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-11 23:11:00 +0300 |
commit | 29e25a77b03c0c8d34c612a74adffb2362af2bff (patch) | |
tree | 79ac107a58ba980e03a8dd869c4fc57406fd6aee /src/kubectl-helm-minikube | |
parent | f8396a6c3531a3a307f5f9d1d3adf065baa7a5a6 (diff) |
Add notes for Features that have them (#88)
Co-authored-by: Brigit Murtaugh <brigit.murtaugh@microsoft.com>
Diffstat (limited to 'src/kubectl-helm-minikube')
-rw-r--r-- | src/kubectl-helm-minikube/NOTES.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/kubectl-helm-minikube/NOTES.md b/src/kubectl-helm-minikube/NOTES.md new file mode 100644 index 0000000..b0d1a80 --- /dev/null +++ b/src/kubectl-helm-minikube/NOTES.md @@ -0,0 +1,12 @@ +## Ingress and port forwarding + +When configuring [Ingress](https://kubernetes.io/docs/concepts/services-networking/ingress/) for your Kubernetes cluster, note that by default Kubernetes will bind to a specific interface's IP rather than localhost or all interfaces. This is why you need to use the Kubernetes Node's IP when connecting - even if there's only one Node as in the case of Minikube. Port forwarding in Remote - Containers will allow you to specify `<ip>:<port>` in either the `forwardPorts` property or through the port forwarding UI in VS Code. + +However, GitHub Codespaces does not yet support this capability, so you'll need to use `kubectl` to forward the port to localhost. This adds minimal overhead since everything is on the same machine. E.g.: + +```bash +minikube start +minikube addons enable ingress +# Run this to forward to localhost in the background +nohup kubectl port-forward --pod-running-timeout=24h -n ingress-nginx service/ingress-nginx-controller :80 & +``` |