-
Notifications
You must be signed in to change notification settings - Fork 273
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
feat: reverse proxying for local k8s dev #2880
Closed
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
d53fc1e
to
2d2ee5c
Compare
ab1d5b9
to
2d5fa3a
Compare
abf8f48
to
c6eed30
Compare
172fa45
to
a6cf6d7
Compare
Ensure that ssh keys are generated only once on the garden startup. Ensure that ssh keys are generated only once on the garden startup.
f1dafbb
to
b27c6a5
Compare
Orzelius
approved these changes
May 11, 2022
Alternative PR (with the same contents) is #2949 - it has the squashed changes and only 3 commits. I'll likely use the new branch local-mode-with-reverse-k8s-proxy as a root feature branch and will create a few more PRs targeted to that branch with some further changes and fixes. |
Closing this is favour of #2949 |
This was referenced Nov 28, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it:
This PR implements a "replacement" of a Garden service (or a few services) running in a k8s cluster with a locally deployed application (or a few applications).
In order to achieve this, the target container in the k8s cluster is replaced with a proxy container that runs an ssh server. First, the Garden app starts an SSH tunnel between the local service and the proxy container using
kubectl port-forward
command. Next, it starts a reverse-port-forwarding withssh
between the remote proxy container's exposed port and the local app's port withssh
command.The Garden supports the new
local-mode
option indeploy
command and the newlocalMode
configuration entry. It allows running a Garden service in "local mode". It means running the application locally and connecting it to the k8s cluster via a proxy container.See https://github.com/garden-io/garden/blob/reverse-proxying-for-local-k8s-dev/docs/guides/running-service-in-local-mode.md for more details.