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

WSL2 (Windows Subsystem for Linux version 2) - Installation instructions #1

Open
paulofrazao opened this issue Sep 22, 2022 · 0 comments

Comments

@paulofrazao
Copy link

paulofrazao commented Sep 22, 2022

Prerequisites

Windows 10 2004 or higher (including version 21H2 and 21H1
WSL2 - Click here for instructions
Brew for Linux - Click here for instructions
Docker - Click here for WSL2 instructions without requiring Docker Desktop

Start by cloning the repository locally:

git clone https://github.com/stefanprodan/flux-local-dev.git
cd flux-local-dev

Install Kubernetes kind, kubectl, flux and other CLI tools with Homebrew:

make tools

The complete list of tools can be found in the Brewfile.

Bootstrap

Start the dev environment with:

make up

Access Flux UI

image

In order to access the UI from your Windows workstation where WSL2 is running, you need to modify %systemroot%\System32\drivers\etc\hosts and add 3 domain name entries and the IP address of the Ubuntu server in WSL2.

ip a

In the example below, the required IP would be the inet address under eth0

image

Add the following domains to %systemroot%\System32\drivers\etc\hosts

REMEMBER TO REPLACE 172.19.4.195 IN THE EXAMPLE BELOW WITH THE IP ADDRESS OF YOUR UBUNTU SERVER!!!

172.19.4.195 podinfo.flux.local
172.19.4.195 grafana.flux.local
172.19.4.195 ui.flux.local

Verify that the NGINX ingress self-signed TLS works:

make check

Access the Flux UI and Grafana using the username admin and password flux:

Access the demo application on http://podinfo.flux.local.

Teardown

Delete the registry and the Kubernetes cluster with:

make down
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

No branches or pull requests

1 participant