Prerequisites
For a smooth sailing make sure you pass this checklist before you begin the installation:- The target machine is clean of any other software that can interfere with it. That means no docker, no kubernetes, http servers, no Nvidia drivers, etc.
- The machine has stable and strong Internet connection
- You can reboot the machine if needed
- Your firewall is not blocking connections to any of these websites
- huggingface.co
- sentry.io (if you opt-in to send us crash reports)
- *.grafana.net (if you opt-in to send us anonymous & aggregated observability metrics)
- The machine has
curl
installed - You have a domain for Zylon ready (ex: zylon.your-company.com), and a valid SSL certificate for that domain
Kernel upgrades (like Ubuntu unattended upgrades) will break Nvidia drivers on every change!.To test if the drivers are working use An implicit kernel update might also happen after a restart of the machine when running in cloud
providers like AWS or Azure.
nvidia-smi
utility, it will display the status of your GPU(s) or
fail if the drivers are not working:If drivers are not working properly they MUST be recompiled for the new kernel version, to do so run:zylon-cli
on the machine where you want to run it. To start the install process make sure that:
- At install time, the machine has internet connection (After Zylon has been installed internet connection it is not a requirement)
- You have ssh access to the machine
- Firewall rules will not block the CLI to download any Zylon container images or certificate generation
Step 1: Install the Zylon CLI
The CLI will speed up the time it takes to get everything ready, it will take care of installing drivers, updating Zylon and generating template configuration for you. To install it, SSH into the machine where you want to install Zylon and runsudo zylon-cli help
to get a list of all the commands!
Step 2: Generate a configuration file for your Zylon installation
Zylon is configured with a yaml file which needs to be located in/etc/zylon/zylon-conf.yaml
You will need to generate this file by yourself. To generate the template for the configuration file use the CLI:
For detailed Zylon instance configuration, refer to the Configuration page.
Step 3: Prepare the machine
In order to install Zylon the machine needs to be ready to do so, and during this step, the drivers will be installed, an embedded kubernetes cluster, and other dependencies will be setup. This process will take between 5 to 15 minutes, it’s normal to see the output freeze while some installers are running, simply wait until it’s done.It’s highly recommended to reboot the machine after this step is completed to ensure GPU drivers are properly
loaded.
Step 4: Install Zylon
This step (install / update) will make Zylon available in your machine assuming the configuration file in/etc/zylon/zylon-conf.yaml
is correct.
The initial installation of Zylon will take around 15 minutes to complete after the update command itself is
completed.
- Zylon images are being downloaded
- AI models are being downloaded
- GPU configuration is getting applied, several validations are running to ensure compatibility
- SSL certificate is being generated
If some service gets stuck in a ContainerCrashLoopBackOff for more than one hour contact us, the installation has
failed.
Step 5: Prepare your organization
To start using Zylon you will need to create your organization in it, as well as adding a root admin that will serve as your entry point for other management tasks. You will need:- A name for your organization (can be changed later)
- A password for the root administrator (can be changed later).
- Due to some encoding limitations in the CLI some special symbols in password don’t work correctly, prefer using a long alphanumeric password.
- An email regex to allow users to join automatically. If your usual work email is
name@company.com
your email regex should be.*@company\.com
Running the seed command will WIPE ALL DATA. Only do this once during the Zylon lifecycle
admin@zylon.ai
Step 6 (optional): Manually installing SSL certificates
If you opted in to use Let’s Encrypt certificates you can skip this section. In case your Zylon installation is behind a VPN / private cloud and it’s not reachable through the internet you will need to configure SSL yourself. To do that you must upload your own SSL certificates and make them available to the server where Zylon is installed.Configuration file
First, REMOVE from the configuration file located in/etc/zylon/zylon-conf.yaml
the following lines
*.key
) and the certificate file in two files (*.crt
) to store them as a secret.
I have a .pfx file (ignore otherwise)
In case you have a.pfx
file you can get the desired files with the following commands: