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

Adjustments to support WSL environements #21

Merged
merged 6 commits into from
Nov 29, 2023
Merged

Conversation

eramella
Copy link
Contributor

@eramella eramella commented Nov 27, 2023

In WSL distros, host.docker.internal does not exist, so I implemented an additional argument to be injected in the shell script that add a cluster to Argocd.
Additionally, when port forward from WSL distros, looks like the system binds only to ipv6 [::1] and not ipv4 127.0.0.1, so we needed to explicitly bind the port forward to 0.0.0.0 (--address 0.0.0.0).
For the same reason, the Argocd tools container needs to run under host mode with flag -h 0.0.0.0, so that processes inside the container can access the docker network.
Lastly, I added a flag to opt out from port forward in case we can make ingress work with Argocd and k3d. And added the an extra env variable for the container argocd cli calls so that we can include any other argocd flags (i.e. --grpc-web)

Added docs
Added gitops args for port forward
Added host 0.0.0.0 to docker run
Removed un-used gitops flag
Updated gateway documentation
Removed -h 0.0.0.0 from container run
@rumstead
Copy link
Owner

Thank you!

@rumstead rumstead merged commit 01d2593 into rumstead:main Nov 29, 2023
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.

2 participants