Developers
Clouds and on-premises
Guides for AWS, Google Cloud, Azure, other GPU providers and your own servers.
Before you start
On any cloud the pattern is the same: a Linux machine with Docker (or a Kubernetes cluster), the NVIDIA driver and runtime if there is a GPU, outbound 443 to the piap hosts and the official image. GPU prices and availability change by region and provider: check them with your provider before choosing.
On a GPU virtual machine, check the driver and get Docker ready to use the GPU (after adding the NVIDIA Container Toolkit repository following NVIDIA's guide for your distribution):
nvidia-smi
sudo apt-get install -y nvidia-container-toolkit
sudo nvidia-ctk runtime configure --runtime=docker
sudo systemctl restart dockerOn Kubernetes, if your provider does not install the NVIDIA device plugin for you:
helm repo add nvdp https://nvidia.github.io/k8s-device-plugin
helm repo update
helm upgrade --install nvdp nvdp/nvidia-device-plugin \
-n nvidia-device-plugin --create-namespacekubectl get nodes -o custom-columns='NAME:.metadata.name,GPU:.status.allocatable.nvidia\.com/gpu'AWS
- EC2: pick an instance with an NVIDIA GPU and an AMI that already includes the driver (the deep learning AMIs, for example), or a standard Linux AMI and install the driver and NVIDIA Container Toolkit. Without a GPU, any instance that meets the requirements works with the
cpuvariant. - EKS: create a GPU node group with the EKS accelerated AMI, which includes the driver, and install the NVIDIA device plugin. Use a StatefulSet with EBS (gp3) volumes and the
cudavariant. - Egress: private subnets need a NAT or an egress proxy to the piap hosts. Do not open inbound security group rules.
Google Cloud
- Compute Engine: create a VM with an attached NVIDIA GPU and an image that installs the driver, or install it yourself along with NVIDIA Container Toolkit.
- GKE: create a GPU node pool and let GKE install the drivers (the GKE driver installation option). GKE adds the device plugin and the
nvidia.com/gputaint to those nodes: the chart withgpu.enabledalready tolerates it. - Egress: with private nodes, use Cloud NAT or an egress proxy.
Azure
- Virtual machines: pick an N-series size with an NVIDIA GPU (for example NC) and install the driver with the NVIDIA GPU driver extension or by hand, along with NVIDIA Container Toolkit.
- AKS: add a GPU node pool and install the NVIDIA device plugin. If you taint the node pool, add the matching toleration in
tolerations. - Egress: with restricted egress, allow 443 to the piap hosts in your firewall or NAT.
Other GPU providers
Any provider that offers Linux machines or Kubernetes with NVIDIA GPUs works. Check that it has:
- NVIDIA driver 531 or later and 8 GB of GPU memory or more.
- NVIDIA Container Toolkit with Docker or Podman, or the NVIDIA device plugin on Kubernetes.
- A persistent volume of 60 GB or more for
/data. - Outbound 443 to
api.piap.io,models.piap.ioandregistry.piap.io.
On-premises
- Physical servers: install Docker, plus the driver and NVIDIA Container Toolkit if there is a GPU, and use Docker Compose with the matching profile.
- Your own Kubernetes clusters: you need a StorageClass for the
/datavolumes (local storage or whatever your infrastructure provides) and the NVIDIA device plugin on GPU nodes. - Internet egress: direct on 443 or through an outbound HTTPS proxy. Set
HTTPS_PROXYandNO_PROXYin the container; the proxy must allow connections to the piap hosts without TLS inspection. Docker and containerd also need the proxy to pull the image. - GPUs shared by time-slicing: several replicas can use the same GPU, but GPU memory is not isolated. Keep the sum of
PIAP_MAX_MEMORY_PERCENTacross pods sharing a GPU at 90 or less, or better, run one pod per GPU.
docker run -d --name piap-node --restart unless-stopped --stop-timeout 90 \
-e PIAP_TOKEN \
-e HTTPS_PROXY=http://proxy.internal:3128 \
-e NO_PROXY=localhost,127.0.0.1,.internal \
-v piap-data:/data --read-only --tmpfs /tmp \
registry.piap.io/piap/node:0.1.0-cpu