Skip to content

Kubernetes

PT | EN

Kubernetes deployment is the recommended method for production environments requiring high availability and scalability.

Vectora provides standard manifests covering secrets, configuration, deployment, and auto-scaling (HPA).

Manifest Structure

The manifests are located in the k8s/ folder at the project root:

  • secret.yaml: Stores sensitive API keys and JWT tokens.
  • configmap.yaml: Non-sensitive configurations (URLs, ports, etc.).
  • deployment.yaml: Defines the desired state of the vectora-cloud container.
  • service.yaml: Exposes Vectora internally or via LoadBalancer.
  • hpa.yaml: Configures Horizontal Pod Autoscaler based on CPU/Memory.

Deployment Steps

  1. Configure Secrets: Update k8s/secret.yaml with your base64-encoded keys or use a secret management tool.
  2. Apply Manifests: Use the make k8s-deploy command or apply directly with kubectl.
  3. Verify: Monitor the pods to ensure Vectora started correctly.
kubectl get pods -l app=vectora

External Linking

Kubernetes & Cloud

ConceptResourceLink
kubectlCheat Sheetkubernetes.io/docs/reference/kubectl/cheatsheet/
HPAPod Autoscalingkubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/
HelmPackage Managerhelm.sh