-
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(k8s): local mode for container modules #2949
Merged
Merged
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
vvagaytsev
changed the title
Feat: local mode with reverse k8s proxy
feat: local mode with reverse k8s proxy
May 11, 2022
Orzelius
previously approved these changes
May 11, 2022
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: this is same as #2880
vvagaytsev
force-pushed
the
feat/local-mode-with-reverse-k8s-proxy
branch
16 times, most recently
from
May 17, 2022 09:12
cdbb589
to
ce43a0a
Compare
I need to add some tests for |
vvagaytsev
force-pushed
the
feat/local-mode-with-reverse-k8s-proxy
branch
from
May 17, 2022 09:47
ce43a0a
to
307cd18
Compare
Orzelius
reviewed
May 24, 2022
vvagaytsev
force-pushed
the
feat/local-mode-with-reverse-k8s-proxy
branch
from
May 24, 2022 14:02
761d108
to
99d43a4
Compare
vvagaytsev
force-pushed
the
feat/local-mode-with-reverse-k8s-proxy
branch
from
May 27, 2022 15:50
99d43a4
to
e770b5d
Compare
Additional change for commit d2a5854
vvagaytsev
force-pushed
the
feat/local-mode-with-reverse-k8s-proxy
branch
from
June 21, 2022 12:29
354ba38
to
98dbe28
Compare
vvagaytsev
changed the title
feat: local mode with reverse k8s proxy
feat: local mode over in-cluster reverse proxy
Jun 21, 2022
edvald
approved these changes
Jun 21, 2022
vvagaytsev
changed the title
feat: local mode over in-cluster reverse proxy
feat(k8s): local mode for container modules
Jun 21, 2022
This was referenced Jul 1, 2022
This was referenced Jan 1, 2024
This was referenced Mar 15, 2024
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 running-service-in-local-mode.md for more details.
See local-mode example to try it out.