Installation

CheatSheets k8s

Available commands - Kit 26.k1

Quick reference for the most common commands for managing Anjana Data Platform with Helm and kubectl.

Kit management (anjana CLI)


anjana horus update --from-env horus.env

Encrypts the horus.env file and generates secrets/anjana.env.aes.

anjana horus update --from-json payload.json

Generates the encrypted bundle from a JSON payload (used in CI/automation).

anjana setup [namespace]

Creates the namespace, the Kubernetes Secrets (anjanadr, anjana-keystore, anjana-secrets), and TLS certificates. Default namespace: anjana-data.

anjana horus apply [namespace]

Decrypts the secrets/anjana.env.aes bundle and creates/updates the anjana-secrets Secret in the cluster (without regenerating TLS or pull secrets).

NOTE: the CLI loads its configuration from anjana.env (copy from anjana.env.example, kept out of Git) or from environment variables. LOCAL_AES_PASSPHRASE is required for anjana horus update/apply; ANJANA_DR_USER / ANJANA_DR_PASS are used for the registry pull secret.

Installation and upgrade (Helm)


helm dependency build

Downloads and packages the chart's dependencies (subcharts anjana-core, anjana-persistences, anjana-plugins).

helm install anjana-platform . -f values-<env>.yaml -n anjana-data

Initial installation of the complete platform. The config-init-job hook fills in the service configuration automatically.

helm upgrade anjana-platform . -f values-<env>.yaml -n anjana-data

Updates the platform to the version defined in the values.

helm uninstall anjana-platform -n anjana-data

Uninstalls the platform (keeps PVCs and Secrets).

helm rollback anjana-platform -n anjana-data

Reverts to the previous release in case of an upgrade failure.

helm template anjana-platform . -f values-<env>.yaml -n anjana-data

Renders the manifests without applying them to the cluster (useful for debugging).

helm lint . -f values-<env>.yaml

Validates the chart syntax and the values without a cluster.

helm history anjana-platform -n anjana-data

History of Helm releases (versions, dates, status).

helm get values anjana-platform -n anjana-data

Shows the active values in the current release.

Deployment status (kubectl)


kubectl get pods -n anjana-data

Lists all pods and their current status.

kubectl get pods -n anjana-data -w

Real-time watch of pod status. ✅RECOMMENDED for monitoring startups and updates.

kubectl describe pod <pod> -n anjana-data

Detailed description: events, conditions, resources, initContainers.

kubectl get all -n anjana-data

Lists all resources in the namespace.

Logs


kubectl logs -n anjana-data <pod> -f

Live view of the logs. Add -c <container> for multi-container pods.

kubectl logs -n anjana-data <pod> --tail=200

Last 200 log lines.

kubectl logs -n anjana-data <pod> --since=2h

Logs from the last 2 hours.

kubectl logs -n anjana-data <pod> --previous

Logs from the previous container if the pod has crashed. ✅RECOMMENDED for diagnosing crashloops.

Access to pods (shell)


kubectl exec -it -n anjana-data horus-0 -- bash

Interactive terminal in the Horus pod.

kubectl exec -it -n anjana-data <pod> -- sh

Terminal in pods with minimal shell (frontends, persistences).

Secrets and configuration


kubectl get secrets -n anjana-data

Lists the existing Secrets in the namespace.

kubectl get secret anjana-secrets -n anjana-data -o jsonpath='{.data}' \| jq 'keys'

Lists the keys of the anjana-secrets Secret without showing values.

kubectl rollout restart deployment <nombre> -n anjana-data

Restarts a Deployment in an orderly manner (after updating a Secret or ConfigMap).

kubectl rollout restart statefulset horus -n anjana-data

Restarts Horus (required for it to pick up new configuration from the Config Server).

Validation


make test

Runs lint + template render of the chart (local validation without a cluster).