|
3 | 3 |
|
4 | 4 | Please follow the below instructions to deploy UI stack with Native mode enabled in Podman. |
5 | 5 |
|
6 | | -## Generate Secret |
| 6 | +## Deploy using the installer (Recommended) |
| 7 | + |
| 8 | +Make a temporary directory and download the installer |
| 9 | + |
| 10 | +```shell |
| 11 | +mkdir instructlab-ui |
| 12 | +cd instructlab-ui |
| 13 | + |
| 14 | +curl -fsSL https://raw.githubusercontent.com/instructlab/ui/refs/heads/main/installers/podman/ilab-ui-native-installer.sh |
| 15 | +``` |
| 16 | + |
| 17 | +Give execution permission to the install |
| 18 | + |
| 19 | +```shell |
| 20 | +chmod a+x ilab-ui-native-installer.sh |
| 21 | +``` |
| 22 | + |
| 23 | +Execute the installer and follow the instructions prompted on the terminal. |
| 24 | + |
| 25 | +If your deployment machine has InstructLab (ilab CLI) setup, either on the host or in python virtual environment, use the following command |
| 26 | + |
| 27 | +```shell |
| 28 | +./ilab-ui-native-installer.sh --username <USERNAME> --password <PASSWORD> |
| 29 | + |
| 30 | +e.g ./ilab-ui-native-installer.sh --username admin --password passw0rd |
| 31 | +``` |
| 32 | + |
| 33 | +If your deployment machine don't have InstructLab CLI setup, please clone the taxonomy repo and fire the following command. |
| 34 | + |
| 35 | +```shell |
| 36 | +./ilab-ui-native-installer.sh --username <USERNAME> --password <PASSWORD> --taxonomy-dir <TAXONOMY_DIR> |
| 37 | + |
| 38 | +e.g ./ilab-ui-native-installer.sh --username admin --password passw0rd --taxonomy-dir /Users/johndoe/instructlab/taxonomy |
| 39 | +``` |
| 40 | + |
| 41 | +>[!NOTE] |
| 42 | +> In the absence of InstructLab CLI, UI won't be able to support the synthetic data generation and fine tuning, but skill and knowledge contribution should work as expected. |
| 43 | +
|
| 44 | +If you are deploying the UI stack on a remote machine, please provide the auth url in the input |
| 45 | + |
| 46 | +```shell |
| 47 | +./ilab-ui-native-installer.sh --username <USERNAME> --password <PASSWORD> --taxonomy-dir <TAXONOMY_DIR> --auth-url http://<REMOTE-IP>:3000 |
| 48 | +``` |
| 49 | + |
| 50 | +Please use `--help` to see more options supported by the installer. |
| 51 | + |
| 52 | +## Deploy manually |
| 53 | + |
| 54 | +If you would like to install the UI stack manually, it's a two step process |
| 55 | + |
| 56 | +- Generate the secret file with the required input |
| 57 | +- Deploy the UI stack manifest file using podman. |
7 | 58 |
|
8 | 59 | A secret is required to provide required input to the UI stack in a secure way. |
9 | 60 |
|
10 | | -Two options exist to generate the secret, either using `kubectl` or filling in values in the `secret.yaml` provided. |
| 61 | +There are two options to generate the secret's file, either using `kubectl` or filling in values in the `secret.yaml` provided. |
11 | 62 |
|
12 | 63 | ### Generate secrets using kubectl |
13 | 64 |
|
@@ -46,17 +97,17 @@ echo "password" | base64 |
46 | 97 |
|
47 | 98 | Using the above to fill in all the required input fields. |
48 | 99 |
|
49 | | -## Deploy the secret |
| 100 | +### Deploy the secret |
50 | 101 |
|
51 | 102 | Now that the `secret.yaml` has been generated, use `podman kube play` to load the secret. |
52 | 103 |
|
53 | 104 | ```bash |
54 | 105 | podman kube play secret.yaml |
55 | 106 | ``` |
56 | 107 |
|
57 | | -## Deploying the InstructLab UI Stack |
| 108 | +### Deploy the InstructLab UI Stack |
58 | 109 |
|
59 | | -One last step before you launch the InstructLab UI. A file named [instructlab-ui.yaml](instructlab-ui.yaml) present in the [native](../native/) directory. Search for <TAXONOMY_REPO_ROOT_DIR> in the yaml file and replace it with the same value that is used while creating the secret.yaml file. Now with the secret in place and deployment yaml updated, use `podman kube play` to launch the containers. UI will look for the taxonomy repo in this directory to submit the skill and knowledge contributions. |
| 110 | +One last step before you launch the InstructLab UI. A file named [instructlab-ui.yaml](instructlab-ui.yaml) present in the [native](../native/) directory. Search for <TAXONOMY_ROOT_DIR> in the yaml file and replace it with the same value that is used while creating the secret.yaml file. Now with the secret in place and deployment yaml updated, use `podman kube play` to launch the containers. UI will look for the taxonomy repo in this directory to submit the skill and knowledge contributions. |
60 | 111 |
|
61 | 112 | ```bash |
62 | 113 | podman kube play instructlab-ui.yaml |
|
0 commit comments