kiteco-public/kite-server
2021-12-31 23:54:19 -08:00
..
edge-ingress Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
metadata Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
models-ingress Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
models-stats-proxy Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
nvidia-docker Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
tunable-models Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
.gitignore Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
docker-stack.yml Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
k8s.yml Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
Makefile Contents — happy new year everyone 2021-12-31 23:54:19 -08:00
README.md Contents — happy new year everyone 2021-12-31 23:54:19 -08:00

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.

  1. Run make kite-server.tgz from this directory.
  2. Transfer the archive to the host and extract its contents, which should result in a kite-server directory.
  3. Run the configure script for the host OS. The script should install Docker and all dependencies.
  4. Optional: Perform the Postinstall Steps so Docker commands can be run without sudo
  5. Create a deployment_token with openssl rand -hex 32 | sudo docker secret create kite-server-deployment-token -
  6. Run docker swarm init
  7. Run docker stack deploy -c docker-stack.yml kite-server
  8. 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()))