You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Warnet requires Kubernetes (k8s) and helm in order to run the network. Kubernetes can be run remotely or locally (with minikube or Docker Desktop). `kubectl` and `helm` must be run locally to administer the network.
3
+
Warnet runs on Kubernetes (k8s) and requires the Helm Kubernetes package manager in order to run the network.
4
+
The Kubernetes cluster can be run locally via minikube, Docker Desktop, k3d or similar, or remotely via Googles GKE, Digital Ocean, etc..
5
+
The utilities `kubectl` and `helm` must be installed and found on $PATH to administer the network.
6
+
7
+
## Install Warnet
8
+
9
+
Either install warnet via pip, or clone the source and install:
10
+
11
+
### via pip
12
+
13
+
You can install warnet via `pip` into a virtual environment with
14
+
15
+
```bash
16
+
python3 -m venv .venv
17
+
source .venv/bin/activate
18
+
pip install warnet
19
+
```
20
+
21
+
### via cloned source
22
+
23
+
You can install warnet from source into a virtual environment with
The [`helm`](https://helm.sh/) and [`kubectl`](https://kubernetes.io/docs/reference/kubectl/) utilities are required for all configurations to talk to and administrate your cluster.
36
+
These can be installed using your operating system's package manager, a third party package manager like [homebrew](https://brew.sh/), or as binaries directly into a python virtual environment created for warnet, by following the steps in [Use warnet to install dependencies](#use-warnet-to-install-dependencies).
37
+
38
+
If you are using a cloud-based cluster, these are the only tools needed.
39
+
40
+
### Use warnet to install dependencies
8
41
9
-
The only two dependencies of Warnet are `helm` and `kubectl` configured to talk to your cloud cluster.
42
+
```bash
43
+
# Ensure the virtual environment is active
44
+
source .venv/bin/activate
45
+
46
+
# Run `warnet setup` to be guided through downloading binaries into the
47
+
# python virtual environment
48
+
warnet setup
49
+
```
10
50
11
51
### Running Warnet Locally
12
52
13
-
If the number of nodes you are running can run on one machine (think a dozen or so) then Warnet can happily run on a local Kubernetes. Two supported k8s implementations are Minikube and K8s as part of Docker Desktop.
53
+
If the number of nodes you are running can run on one machine (think a dozen or so) then Warnet can happily run on a local Kubernetes.
54
+
Two supported local Kubernetes implementations are Minikube and Docker Desktop.
14
55
15
56
#### Docker Desktop
16
57
17
-
[Docker desktop](https://www.docker.com/products/docker-desktop/) includes the docker engine itself and has an option to enable Kubernetes. Simply installing it and enabling Kubernetes should be enough.
18
-
19
-
[Helm](https://helm.sh/docs/intro/install/) is also required to be installed.
58
+
[Docker desktop](https://www.docker.com/products/docker-desktop/) includes the docker engine itself and has an option to enable Kubernetes.
59
+
Install it and enable Kubernetes in the option menu to start a cluster.
20
60
21
61
#### Minikube
22
62
23
-
Minikube requires a backend to run on with the supported backend being Docker. So if installing Minikube, you may need to install docker first. Please see [Installing Docker](https://docs.docker.com/engine/install/) and [Installing Minkube](https://minikube.sigs.k8s.io/docs/start/).
63
+
Minikube requires a backend to run on with the supported backend being Docker.
64
+
65
+
[Install Docker](https://docs.docker.com/engine/install/) first, and then proceed to [Install Minkube](https://minikube.sigs.k8s.io/docs/start/).
24
66
25
67
After installing Minikube don't forget to start it with:
26
68
@@ -30,9 +72,10 @@ minikube start
30
72
31
73
Minikube has a [guide](https://kubernetes.io/docs/tutorials/hello-minikube/) on getting started which could be useful to validate that your minikube is running correctly.
32
74
33
-
###Testing kubectl and helm
75
+
## Testing kubectl and helm
34
76
35
-
The following commands should run on both local and remote clusters. Do not proceed unless kubectl and helm are working.
77
+
After installing `kubectl` and `helm` the following commands should run successfully on either a local or remote cluster.
78
+
Do not proceed unless `kubectl` and `helm` are working.
0 commit comments