Skip to content
Opod

Get started

Quickstart

Install the control plane on a Kubernetes cluster with GPUs, create an endpoint and send it a chat request.

This page takes you from a Kubernetes cluster with GPUs to a served model. It takes about ten minutes, most of it image pulls.

The control plane is free up to 4 GPUs in total. You need no key and no sign-up. Images and the chart pull from ghcr.io/opod-io with no credentials, for linux/amd64 and linux/arm64.

Where it runs

opodcp is one Deployment in the opod namespace of your cluster. It needs outbound pulls from ghcr.io (or your mirror) and from your model source. Nothing outside the cluster connects to it.

Before you start

  • Kubernetes 1.28 or newer, all nodes Ready, CoreDNS running
  • GPUs that a device plugin advertises (the chart brings the NVIDIA, AMD, Intel and Tenstorrent plugins when they are absent)
  • For the published 0.2.1: a default StorageClass (its state is SQLite on a volume). For 0.3.0: a Postgres database instead
  • kubectl and helm on your machine

No GPU yet, or bare machines with no Kubernetes? See Install on bare machines.

  1. Check the cluster

    The chart runs the same check as a pre-install Job and refuses a half-install. Running it first shows the answer earlier.

    docker run --rm --network host --user "$(id -u):$(id -g)" -v ~/.kube:/kube:ro \
      ghcr.io/opod-io/opodcp:0.3.6 preflight --kubeconfig /kube/config

    The image runs as uid 65532 by default; --user lets it read a kubeconfig that only you can read. Every row marked ✘ is fatal and prints what to do. See Preflight.

  2. Install the chart

    0.2.1 keeps its state in embedded SQLite on a volume. It needs a default StorageClass and no database.

    helm install opodcp oci://ghcr.io/opod-io/charts/opodcp --version 0.3.6 \
      -n opodcp --create-namespace --set admin.token=$(openssl rand -hex 16)
  3. Open the console

    kubectl -n opodcp rollout status deploy/opodcp
    kubectl -n opodcp get secret opodcp-admin -o jsonpath='{.data.token}' | base64 -d; echo
    kubectl -n opodcp port-forward svc/opodcp 8080:8080

    Open http://127.0.0.1:8080 and sign in with the token the second command printed. Next, create a real user or connect your identity provider: see Users, roles and SSO.

  4. Create an endpoint

    In the console, open Endpoints → New. Pick a model from the catalog and leave placement on Auto. The control plane picks the engine and the GPU from the VRAM it measured. Press Preview to see the choice and the reason for each step, then Create.

    Or use the API. Preview first: it creates nothing.

    H="Authorization: Bearer <admin token>"
    BODY='{"name":"chat","model":"qwen2.5-0.5b-gguf","plan":{"placement":"auto","model":{"id":"qwen2.5-0.5b-gguf"},"workers":[],"shardGroups":[]}}'
     
    curl -s -H "$H" -H 'Content-Type: application/json' \
      -X POST http://127.0.0.1:8080/api/v1/endpoints/preview -d "$BODY" | jq .plan.resolved
     
    curl -s -H "$H" -H 'Content-Type: application/json' \
      -X POST http://127.0.0.1:8080/api/v1/endpoints -d "$BODY" | jq .id
  5. Wait for serving

    curl -s -H "$H" http://127.0.0.1:8080/api/v1/endpoints/<id>/status | jq .phase,.proof

    The phase moves from pending to converging to serving. Serving means the leader produced a first token, not only that a pod is Ready. The proof field holds the evidence, for example first token in 412 ms.

  6. Send a request

    Through the control plane's proxy (the console's Playground uses the same route):

    curl -s -H "$H" -H 'Content-Type: application/json' \
      -X POST http://127.0.0.1:8080/api/v1/endpoints/<id>/gateway/v1/chat/completions \
      -d '{"model":"qwen2.5-0.5b-gguf","messages":[{"role":"user","content":"hello"}]}'

    Your applications call the endpoint directly. Inside the cluster its address is the endpoint's url field, for example http://opodcp-ep-chat.opod.svc:8080; point an OpenAI SDK at that URL plus /v1. Any OpenAI SDK works unchanged. With endpoints.tls.embedded=true (off by default) the URL is https:// and the endpoint page shows the certificate fingerprint to pin.

Next steps

  • Mint API keys on the API keys page and turn on Require keys. See API keys.
  • Reach the endpoint from outside the cluster with your Gateway or Ingress. See Network and TLS.
  • Connect your services (usage sink, OIDC, alerts, logs) on the Connectors page. See Connectors.
  • More than 4 GPUs? See Licensing.

What keeps working when the control plane is down

With every opodcp replica and its database gone
Serving, load balancing, API keysworks
Scaling out, scaling in and waking from zero with autoscaler.adapter=kedaworks for dedicated workers; for a gang, park and wake only (max: 1), since a second gang is placed by the embedded loop (the release after 0.3.6)
Scaling on the embedded autoscaler, shared endpoints, the sleep tierfrozen at the current size
New endpoints, plan edits, rolloutswait for the control plane

Last updated · Source: content/docs/get-started/quickstart.mdx · View as Markdown