In order to start development on this project you will need these tools:
/etc/hosts
fileKAI Server has a tool called krectl
to handle common actions you will need during development.
All the configuration needed to run KAI Server locally can be found in the .krectl.conf
file. Usually, you’ll be ok with the default values. Check Minikube’s parameters if you need to tweak the resources assigned to it.
Run help
to get info for each command:
$> krectl.sh [command] --help
// Outputs:
krectl.sh -- a tool to manage KAI Server environment during development.
syntax: krectl.sh <command> [options]
commands:
dev creates a complete local environment and auto-login to frontend.
start starts minikube kre profile.
stop stops minikube kre profile.
login creates a login URL and open your browser automatically on the admin page.
build calls docker to build all images inside minikube.
deploy calls helm to create install/upgrade a kre release on minikube.
delete calls kubectl to remove runtimes or versions.
global options:
h prints this help.
v verbose mode.
To install KAI Server in your local environment:
$> ./krectl.sh dev [--hard]
This will install everything you need into the namespace specified in your development .krectl.conf
file.
The Hard
flag will force starting from 0 all installation processes.
First, remember to edit your /etc/hosts
, see ./krectl.sh dev
output for more details.
NOTE: If you have the hostctl tool installed, updating /etc/hosts
will be done automatically too.
Now you can access the admin UI visiting the login URL that will be opened automatically by executing the following script:
$> ./krectl.sh login [--new]
You will see an output like this:
⏳ Calling Admin API...
Login done. Open your browser at:
🌎 http://admin.kre.local/signin/c7d024eb-ce35-4328-961a-7d2b79ee8988
✔️ Done.