chart-vllm

by danchev

Helm chartv0.0.1Verified publisher

Chart vllm

About this chart

chart-vllm

Chart vllm

Values

KeyTypeDefaultDescription
autoscalingobject{"enabled":false,"maxReplicas":100,"minReplicas":1,"targetCPUUtilizationPercentage":80}Autoscaling configuration
autoscaling.enabledboolfalseEnable autoscaling
autoscaling.maxReplicasint100Maximum replicas
autoscaling.minReplicasint1Minimum replicas
autoscaling.targetCPUUtilizationPercentageint80Target CPU utilization for autoscaling
configsobject{}Configmap
containerPortint8000Container port
customObjectslist[]Custom Objects configuration
deploymentStrategyobject{}Deployment strategy configuration
externalConfigslist[]External configuration
extraContainerslist[]Additional containers configuration
extraInitobject{"awsEc2MetadataDisabled":true,"pvcStorage":"1Gi","s3modelpath":"relative_s3_model_path/opt-125m"}Additional configuration for the init container
extraInit.pvcStoragestring"1Gi"Storage size of the s3
extraInit.s3modelpathstring"relative_s3_model_path/opt-125m"Path of the model on the s3 which hosts model weights and config files
extraPortslist[]Additional ports configuration
gpuModelslist["TYPE_GPU_USED"]Type of gpu used
imageobject{"command":["vllm","serve","/data/","--served-model-name","opt-125m","--dtype","float32","--block-size","16","--host","0.0.0.0","--port","8000"],"repository":"vllm/vllm-openai","tag":"latest"}Image configuration
image.commandlist["vllm","serve","/data/","--served-model-name","opt-125m","--dtype","float32","--block-size","16","--host","0.0.0.0","--port","8000"]Container launch command
image.repositorystring"vllm/vllm-openai"Image repository
image.tagstring"latest"Image tag
labels.environmentstring"test"
labels.releasestring"test"
livenessProbeobject{"failureThreshold":5,"httpGet":{"path":"/health","port":8000},"initialDelaySeconds":15,"periodSeconds":10}Liveness probe configuration
livenessProbe.failureThresholdint5Number of times after which if a probe fails in a row, Kubernetes considers that the overall check has failed: the container is not alive
livenessProbe.httpGetobject{"path":"/health","port":8000}Configuration of the Kubelet http request on the server
livenessProbe.httpGet.pathstring"/health"Path to access on the HTTP server
livenessProbe.httpGet.portint8000Name or number of the port to access on the container, on which the server is listening
livenessProbe.initialDelaySecondsint15Number of seconds after the container has started before liveness probe is initiated
livenessProbe.periodSecondsint10How often (in seconds) to perform the liveness probe
maxUnavailablePodDisruptionBudgetstring""Disruption Budget Configuration
readinessProbeobject{"failureThreshold":5,"httpGet":{"path":"/health","port":8000},"initialDelaySeconds":5,"periodSeconds":5}Readiness probe configuration
readinessProbe.failureThresholdint5Number of times after which if a probe fails in a row, Kubernetes considers that the overall check has failed: the container is not ready
readinessProbe.httpGetobject{"path":"/health","port":8000}Configuration of the Kubelet http request on the server
readinessProbe.httpGet.pathstring"/health"Path to access on the HTTP server
readinessProbe.httpGet.portint8000Name or number of the port to access on the container, on which the server is listening
readinessProbe.initialDelaySecondsint5Number of seconds after the container has started before readiness probe is initiated
readinessProbe.periodSecondsint5How often (in seconds) to perform the readiness probe
replicaCountint1Number of replicas
resourcesobject{"limits":{"cpu":4,"memory":"16Gi","nvidia.com/gpu":1},"requests":{"cpu":4,"memory":"16Gi","nvidia.com/gpu":1}}Resource configuration
resources.limits."nvidia.com/gpu"int1Number of gpus used
resources.limits.cpuint4Number of CPUs
resources.limits.memorystring"16Gi"CPU memory configuration
resources.requests."nvidia.com/gpu"int1Number of gpus used
resources.requests.cpuint4Number of CPUs
resources.requests.memorystring"16Gi"CPU memory configuration
secretsobject{}Secrets configuration
serviceNamestringnilService name
servicePortint80Service port

Files

  • Chart.yaml: Defines the chart metadata including name, version, and maintainers.
  • ct.yaml: Configuration for chart testing.
  • lintconf.yaml: Linting rules for YAML files.
  • values.schema.json: JSON schema for validating values.yaml.
  • values.yaml: Default values for the Helm chart.
  • templates/_helpers.tpl: Helper templates for defining common configurations.
  • templates/configmap.yaml: Template for creating ConfigMaps.
  • templates/custom-objects.yaml: Template for custom Kubernetes objects.
  • templates/deployment.yaml: Template for creating Deployments.
  • templates/hpa.yaml: Template for Horizontal Pod Autoscaler.
  • templates/job.yaml: Template for Kubernetes Jobs.
  • templates/poddisruptionbudget.yaml: Template for Pod Disruption Budget.
  • templates/pvc.yaml: Template for Persistent Volume Claims.
  • templates/secrets.yaml: Template for Kubernetes Secrets.
  • templates/service.yaml: Template for creating Services.

Deploy chart-vllm with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has chart-vllm on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartchart-vllm is pinned at v0.0.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below
opentenant validate opentenant.yaml
terraform init && terraform apply