Skip to content

Commit 38f802e

Browse files
doc
1 parent a54382b commit 38f802e

File tree

1 file changed

+16
-11
lines changed

1 file changed

+16
-11
lines changed

examples/k3s/README.md

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,12 @@ This example will help you try Treebeard Kubeflow in your development environmen
44

55
## Pre-reqs:
66

7-
* 2 cpus and 16G memory in your dev environment (local or via SSH)
8-
* Higher limits for file handlers (this gets reset on system restart)
7+
> [!Note]
8+
> The simplest environment setup may be to fork this repo and open it using github codespaces.
9+
10+
11+
* 2 cpus and 8G memory in your dev environment (local or via SSH)
12+
* _If you are running on a laptop/vm with docker_: Higher limits for file handlers (this gets reset on system restart)
913

1014
```sh
1115
# Note that these must be run outside of a container
@@ -38,12 +42,14 @@ Some tools can make this process easier:
3842

3943
### 1. Setup Kubernetes
4044

41-
First, let's setup a single node k3d cluster:
45+
Clone this repo (if not in codespaces) and use the makefile to setup kubernetes:
4246

4347
```sh
48+
git clone -b v0.1 https://github.com/treebeardtech/terraform-kubernetes-kubeflow.git
49+
cd terraform-kubernetes-kubeflow
4450
export KUBECONFIG=~/.kube/demo.yaml
4551
rm $KUBECONFIG # remove if exists from previous attempts
46-
k3d cluster create demo
52+
make k3d-create
4753
```
4854

4955
Once complete, verify the API server has started:
@@ -54,16 +60,10 @@ kubectl get nodes
5460

5561
### 2. Install Treebeard Kubeflow
5662

57-
Clone this example into your development environment
58-
59-
```sh
60-
git clone -b v0.0.3 --recurse-submodules https://github.com/treebeardtech/terraform-kubernetes-kubeflow.git
61-
cd terraform-kubernetes-kubeflow/examples/k3s
62-
```
63-
6463
Initialise the terraform environment
6564

6665
```sh
66+
cd examples/k3s
6767
terraform init
6868
```
6969

@@ -83,6 +83,11 @@ kubectl port-forward --namespace "istio-system" svc/istio-ingressgateway 8080:h
8383

8484
then go to http://localhost:8080/ to see the login page
8585

86+
### 4. Uninstall Kubeflow
87+
88+
```sh
89+
terraform destroy -var kubeconfig=$KUBECONFIG
90+
```
8691

8792
## Usage
8893

0 commit comments

Comments
 (0)