Quick Start¶
From zero to a running service in 5 minutes.
Prerequisites¶
- Repository in GitLab (group
infrastructure/hive/) - Service listens on HTTP on some port
- Service has a health endpoint (can be just
/)
Step 1: Create .hive.yml¶
Create a .hive.yml file in the root of your repository:
This is the minimal configuration. Hive will automatically detect the language and build a container.
Default name
If name is not specified, Hive will use the directory name or project name from the git remote.
Step 2: Set up CI¶
Create .gitlab-ci.yml in the repository root:
stages:
- generate
- run
generate-pipeline:
stage: generate
image: lab.xmonetize.net:5050/infrastructure/hive/hive-api/cli:latest
script:
- hive ci --global > child-pipeline.yml
artifacts:
paths:
- child-pipeline.yml
run-pipeline:
stage: run
trigger:
include:
- artifact: child-pipeline.yml
job: generate-pipeline
strategy: depend
This automatically generates a full CI pipeline from your .hive.yml files.
Step 3: Push¶
The pipeline will start automatically:
- init — registers the repository in ArgoCD
- build — builds a container using Cloud Native Buildpacks (or Dockerfile)
- test — starts the container and checks the health endpoint
- deploy — deploys via ArgoCD to Kubernetes
Step 4: Get your URL¶
After a successful deploy, the service will be available at:
| Environment | URL |
|---|---|
| Staging | https://{name}.{namespace}.knative-staging.svcik.org |
| Production | https://{name}.{namespace}.knative.svcik.org |
For example: https://my-service.hive-examples.knative-staging.svcik.org
Examples¶
See ready-made examples in the hive-examples repository:
Claude Code integration¶
Add the Hive skill so Claude Code can help with configuration, CI setup, and troubleshooting.
Global (all projects on your machine):
Per-project (shared with team via git):
git submodule add git@lab.xmonetize.net:infrastructure/hive/hive-skills.git .claude/skills/hive
git commit -m "Add hive skill for Claude Code"
To update: cd ~/.claude/skills/hive && git pull (global) or git submodule update --remote .claude/skills/hive (per-project).
Before working with Hive
Always start with /hive in Claude Code. This loads the latest skill context and checks for updates. Make it a habit — like git pull before starting work.
What's next¶
- Configuration — all
.hive.ymlparameters - CLI — commands for local development
- Multi-service — multiple services in one repository