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

docs:added k3s wsl2 setup code snippet #3597

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions content/en/v3/admin/platforms/k3s/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ This guide will walk you though how to setup Jenkins X on your laptop using [k3s

If you are on Mac OS, you can follow this [guide](https://docs.kalm.dev/install/install-local-k3s/) to set up k3s.
You do not need to install kalm for the rest of the tutorial.

If you are on Windows, you can use [Windows Subsystem for Linux](https://docs.microsoft.com/en-us/windows/wsl/)(WSL).It lets developers run a GNU/Linux environment.This includes CLI tools,utilities, applications on Windows without the use of Virtual Machine or dual-boot setup.
animeshdas2000 marked this conversation as resolved.
Show resolved Hide resolved
### Prerequisites

#### K3s
Expand All @@ -38,6 +40,13 @@ export KUBECONFIG=~/.kube/config:~/.kube/k3s-config

```

**For WSL2 users:**
- Download k3s binary from https://github.com/rancher/k3s/releases/latest

animeshdas2000 marked this conversation as resolved.
Show resolved Hide resolved
- `chmod +x k3s`

- Run k3s `sudo ./k3s server`
animeshdas2000 marked this conversation as resolved.
Show resolved Hide resolved

To verify that k3s has been installed successfully, and configured run:

```bash
Expand Down Expand Up @@ -81,6 +90,10 @@ Make sure you have vault running in a docker container with kubernetes auth enab
```bash
docker run --name jx-k3s-vault -d --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -e 'VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200' --net host vault:latest
```
**For WSL2 users:**
```bash
docker run --name jx-k3s-vault -d --cap-add=IPC_LOCK -e 'VAULT_DEV_ROOT_TOKEN_ID=myroot' -e 'VAULT_DEV_LISTEN_ADDRESS=0.0.0.0:8200' -p 8200:8200 vault:latest
```

animeshdas2000 marked this conversation as resolved.
Show resolved Hide resolved
To verify if vault started properly use `docker logs jx-k3s-vault`.

Expand Down