mirror of
https://github.com/kiteco/kiteco-public.git
synced 2024-09-11 13:38:04 +03:00
.. | ||
edge-ingress | ||
metadata | ||
models-ingress | ||
models-stats-proxy | ||
nvidia-docker | ||
tunable-models | ||
.gitignore | ||
docker-stack.yml | ||
k8s.yml | ||
Makefile | ||
README.md |
Kite Team Server
Setup
Currently, only Ubuntu 20.04 and RHEL 7 variants are officially supported.
The nvidia-docker
image in GCP can be used to bootstrap steps 1-3 below.
- Run
make kite-server.tgz
from this directory. - Transfer the archive to the host and extract its contents, which should result in a
kite-server
directory. - Run the
configure
script for the host OS. The script should install Docker and all dependencies. - Optional: Perform the Postinstall Steps so Docker commands can be run without
sudo
- Create a
deployment_token
withopenssl rand -hex 32 | sudo docker secret create kite-server-deployment-token -
- Run
docker swarm init
- Run
docker stack deploy -c docker-stack.yml kite-server
- To check that all services have spun up, check the output of
docker service ls
:ID NAME MODE REPLICAS IMAGE PORTS XXXXXXX kite-server_edge-ingress replicated 1/1 kiteco/kite-server-edge-ingress:latest *:8500->8500/tcp, *:9902->9901/tcp XXXXXXX kite-server_metadata replicated 1/1 kiteco/kite-server-metadata:latest *:8080->8080/tcp XXXXXXX kite-server_models replicated 1/1 kiteco/kite-server-models:latest XXXXXXX kite-server_models-ingress replicated 1/1 kiteco/kite-server-models-ingress:latest *:9901->9901/tcp XXXXXXX kite-server_models-stats-proxy replicated 1/1 kiteco/kite-server-models-stats-proxy:latest *:8601->8601/tcp
Known Tokens
Known tokens can be found in the KTS Deployment Token Google Sheet
Deployment IDs
To derive a deployment ID from a token, use the following Python 3 snippet:
import hashlib
import base64
token = "XXXXXXX"
print(base64.b64encode(hashlib.sha256((token+'\n').encode()).digest()))