Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add kfwd command #11

Merged
merged 3 commits into from
Nov 29, 2019
Merged

Add kfwd command #11

merged 3 commits into from
Nov 29, 2019

Conversation

alexellis
Copy link
Member

@alexellis alexellis commented Nov 29, 2019

Signed-off-by: Alex Ellis (OpenFaaS Ltd) [email protected]

Description

Add kfwd command

Makes the kubectl port-forward easier for minikube, KinD and k3d.

How Has This Been Tested?

Tested in this video between a local k3d cluster and my helm chart for the expressjs-k8s web server https://youtu.be/Suubz0f0p3c

curl https://raw.githubusercontent.com/helm/helm/master/scripts/get-helm-3 | bash

helm repo add expressjs-k8s https://alexellis.github.io/expressjs-k8s/
helm repo update
helm install test-app expressjs-k8s/expressjs-k8s

Replace 192.168.0.14 with the ip found in ifconfig or your network settings. Use your ethernet or WiFi adapter IP.

inletsctl kfwd --from test-app-expressjs-k8s:8080 --if 192.168.0.14

Now access the service on: http://192.168.0.14:8080

Before:

This greatly simplifies my micro-tutorial for KinD -> https://gist.github.com/alexellis/c29dd9f1e1326618f723970185195963

Compare and contrast ☝️

After:

https://github.com/inlets/inlets/blob/master/docs/kubernetes.md#try-inlets-with-kind-kubernetes-in-docker

How are existing users impacted? What migration steps/scripts do we need?

N/a

Makes the kubectl port-forward easier for minikube, KinD and k3d.

Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
@alexellis alexellis merged commit 6649e64 into master Nov 29, 2019
@alexellis alexellis deleted the openfaasltd/kfwd branch November 29, 2019 16:54
@alexellis
Copy link
Member Author

inlets PRO support is still pending, but I think it will be relatively easy to add #13 - then you can get pure TCP traffic like databases etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant