This page does on your laptop what the kims-platform Jenkins job does on KIMS's EKS: build the one image, install the Helm chart, let the migrate Job create the tables, then start the CMS, the worker and the CronJobs. It can also rehearse the first-day content load from the one-off pod, into an empty database, with the exact bundle you will carry.
| Name | Value |
|---|---|
| kind cluster | kims-v2 (one node), from deploy/kind/kind-config.yaml |
| kubectl context | kind-kims-v2 |
| Namespace | kims |
| Helm release | kims, chart deploy/helm/kims, values deploy/helm/kims/values-local.yaml |
| Image | kims-v2:dev, loaded straight into the node (pullPolicy: Never, no registry) |
| CMS address | http://localhost:3102 (kind maps node port 30102 to 127.0.0.1:3102) |
| Database, S3, Keycloak | The Compose services on your machine, reached from the pods as host.docker.internal |
#What differs from KIMS
| Here | On KIMS |
|---|---|
The pods use the S3 stand-in's access keys (Secret kims-s3) |
The pods use an IAM role through IRSA; no keys |
| The image is loaded into the node | The image is pulled from KIMS's registry, tagged with the commit |
| The database is on your machine, no TLS | RDS, ?sslmode=require |
CronJobs are installed but suspended (cron.suspend: true) |
CronJobs run |
| One CMS replica, no PodDisruptionBudgets | Two CMS replicas, PDBs on |
| No ingress | An ingress with a certificate and a DNS record (Helm values) |
Signing in to the CMS on kind needs the windows-fixes commits, not yet merged into main. The issuer the browser and Keycloak agree on is http://localhost:8180, and inside a pod localhost is the pod itself. windows-fixes adds a small Keycloak proxy container to the CMS pod (cms.keycloakProxy), turns it on in values-local.yaml, and adds http://localhost:3102 to the realm's redirect URIs. It also adds S3_PUBLIC_ENDPOINT, without which media uploads from the kind CMS fail. On main, everything else on this page works (the deploy, the migrate Job, the health check, kims check, the content-load rehearsal), but signing in at http://localhost:3102 gives HTTP 500.
Linux with Docker Engine (not Docker Desktop): the pods reach your machine as host.docker.internal, which Docker Desktop provides on every system but plain Docker Engine does not provide inside kind's node, and the Compose services listen on 127.0.0.1 only. The rehearsal was tested only with Docker Desktop (on Windows). On Linux, use Docker Desktop for Linux for this page, or expect the migrate Job to fail with the database unreachable. Not tried on Linux.
#Before you start
- The services are up and migrated: Services, Database and content.
- kind, Helm 3 (3.14 or later, not 4) and kubectl work: kubectl, Helm and kind. From
<KIMS_FOLDER>,node deployment-steps/scripts/deploy.mjs local check --for 07printsOK for step 07. - Port 3102 is free.
- Docker has a few GB of disk free for the image build.
#Quick way
Run from <KIMS_FOLDER> (on Windows, in a window opened after kind and Helm were installed):
node deployment-steps/scripts/deploy.mjs local kube upnode deployment-steps/scripts/deploy.mjs local kube upnode deployment-steps/scripts/deploy.mjs local kube upIt creates the cluster if it's missing, builds and loads the image, creates the namespace and Secrets from .env.local, runs helm upgrade --install, then checks:
kims-cms: 1/1 ready
kims-worker: 1/1 ready
kims-migrate: Completed
CronJobs: 5 (alerts, reviews-sync, scheduled-publish-tick, site-build-reap, translation-tick)
{"status":"ready","database":"ok"}
OK: the chart is running on kind. CMS: http://localhost:3102The first run took about 8 minutes (2026-11-28), mostly the image build. --skip-build reuses the loaded image and takes under a minute. It warns when the repo has uncommitted changes, because they go into the image too (still labelled with the last commit). It passes the image's id as a pod annotation, so a rebuilt kims-v2:dev replaces the pods and an unchanged one doesn't. --database <name> points the deploy at another local database.
It is a Node version of deploy/kind/up.sh, so it needs no Git Bash on Windows.
#By hand
#1. Create the kind cluster
Skip this if kind get clusters lists kims-v2. Run from the repo:
kind create cluster --config deploy/kind/kind-config.yamlkind create cluster --config deploy/kind/kind-config.yamlkind create cluster --config deploy/kind/kind-config.yamlIt takes about a minute and ends You can now use your cluster with: kubectl cluster-info --context kind-kims-v2.
#2. Build the image
Run from the repo:
docker buildx build -f deploy/Dockerfile --load -t kims-v2:dev --build-arg GIT_SHA="$(git rev-parse --short HEAD)" .docker buildx build -f deploy/Dockerfile --load -t kims-v2:dev --build-arg GIT_SHA="$(git rev-parse --short HEAD)" .docker buildx build -f deploy/Dockerfile --load -t kims-v2:dev --build-arg GIT_SHA="$(git rev-parse --short HEAD)" .Several minutes the first time. It builds from the working folder, so uncommitted changes are in the image. It builds for your machine's architecture (arm64 on Apple silicon), which is what kind's node runs. The kims-platform job builds both amd64 and arm64.
#3. Load the image into the cluster
kind's node can't pull from your Docker, so the image is copied in:
kind load docker-image kims-v2:dev --name kims-v2kind load docker-image kims-v2:dev --name kims-v2kind load docker-image kims-v2:dev --name kims-v2#4. Create the namespace and the Secrets
On EKS these Secrets are made once per environment (Secrets). Here they come from .env.local, with 127.0.0.1 and localhost replaced by host.docker.internal:
| Secret | Keys | From |
|---|---|---|
kims-database |
url |
DATABASE_URL |
kims-keycloak |
client-secret |
KEYCLOAK_CLIENT_SECRET |
kims-app |
session-secret, secrets-key |
SESSION_SECRET, and a fixed throwaway key written in deploy/kind/up.sh |
kims-jenkins |
token |
A dummy value: no Jenkins is called from kind |
kims-s3 |
access-key-id, secret-access-key |
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEY (local only; EKS uses IRSA) |
The kind secrets-key must stay the same between runs, or stored Google secrets can't be read; that is why it is fixed rather than generated.
The repo's deploy/kind/up.sh makes all of these (and does steps 1 to 3 and 5). It is a shell script, so on Windows it needs Git Bash. Run from the repo:
sh deploy/kind/up.shsh deploy/kind/up.sh# In Git Bash, from the repo (not PowerShell)
sh deploy/kind/up.shSKIP_BUILD=1 sh deploy/kind/up.sh reuses the loaded image. It ends by listing the pods and up: CMS on http://localhost:3102. Unlike deploy.mjs, it waits 5 minutes for Helm (not 10) and doesn't roll the pods when you rebuild the same dev tag; restart them yourself (step 5's restart line).
To create the Secrets in PowerShell without Git Bash, use the quick way: deploy.mjs builds them in Node from .env.local.
#5. Install the chart
Run from the repo:
helm upgrade --install kims deploy/helm/kims --kube-context kind-kims-v2 --namespace kims -f deploy/helm/kims/values-local.yaml --set image.tag=dev --wait --timeout 10mhelm upgrade --install kims deploy/helm/kims --kube-context kind-kims-v2 --namespace kims -f deploy/helm/kims/values-local.yaml --set image.tag=dev --wait --timeout 10mhelm upgrade --install kims deploy/helm/kims --kube-context kind-kims-v2 --namespace kims -f deploy/helm/kims/values-local.yaml --set image.tag=dev --wait --timeout 10mThe kims-migrate Job runs first (a pre-install,pre-upgrade hook), then the CMS, the worker and the CronJobs start. It ends STATUS: deployed.
If the Secrets changed, or you rebuilt the image under the same tag, restart the apps so they pick it up:
kubectl --context kind-kims-v2 -n kims rollout restart deployment/kims-cms deployment/kims-workerkubectl --context kind-kims-v2 -n kims rollout restart deployment/kims-cms deployment/kims-workerkubectl --context kind-kims-v2 -n kims rollout restart deployment/kims-cms deployment/kims-worker#Check
| Check | Command | You should see |
|---|---|---|
| Everything is running | kubectl --context kind-kims-v2 -n kims get pods,jobs,cronjobs |
kims-cms Running (1/1 on main, 2/2 with the windows-fixes Keycloak proxy), kims-worker Running 1/1, kims-migrate Complete, 5 CronJobs with SUSPEND True |
| The migrations ran | kubectl --context kind-kims-v2 -n kims logs job/kims-migrate |
[migrate] done: ... |
| The CMS answers | curl -s "http://localhost:3102/api/health?check=ready" (Windows: curl.exe) |
{"status":"ready","database":"ok"} |
| All of the above, as on KIMS | from <KIMS_FOLDER>: node deployment-steps/scripts/deploy.mjs kims check --context kind-kims-v2 |
OK: the deploy in kims is healthy. |
Signing in (windows-fixes only) |
Open http://localhost:3102, sign in as admin@kims.local |
The Keycloak sign-in page, then the dashboard |
The health checks cover the database only, not signing in. kims check is the same check you will run on KIMS (deploy.mjs), which makes kind a good place to try it.
#Run one CronJob by hand
The CronJobs are suspended here. To run one once:
kubectl --context kind-kims-v2 -n kims create job --from=cronjob/kims-cron-translation-tick try-1
kubectl --context kind-kims-v2 -n kims logs job/try-1The same lines work in PowerShell. A cron run only enqueues its job; the worker does the work.
#Rehearse the KIMS content load
On KIMS the database starts empty: the first deploy's migrate Job creates the tables, then the content is loaded from a one-off pod inside the cluster (Content load). This rehearses exactly that, into a separate empty database, kims_rehearsal, so your main kims database isn't touched.
#Quick way
After local kube up, run from <KIMS_FOLDER>:
node deployment-steps/scripts/deploy.mjs local kube rehearse-loadnode deployment-steps/scripts/deploy.mjs local kube rehearse-loadnode deployment-steps/scripts/deploy.mjs local kube rehearse-loadIt drops and recreates kims_rehearsal, points the kind deploy's kims-database Secret at it, redeploys (so the migrate Job creates the tables), then starts the repo's deploy/handover/load-bundle-pod.yaml, copies the bundle in (about 530 MB), runs kims-entrypoint data-bundle load, deletes the pod, and checks the rows match the bundle. It took about 3 minutes (2026-11-28) and ends:
OK: the KIMS deploy and content load worked on kind, into kims_rehearsal.--keep-pod leaves the pod running for debugging. Afterwards the kind CMS uses kims_rehearsal; local kube up --skip-build points it back at kims.
How kind differs, and what the command fills in: no IAM role, so the pod gets the S3 stand-in's address and the kims-s3 keys; no registry, so it uses kims-v2:dev with imagePullPolicy: Never; the database is on your machine, at host.docker.internal.
#By hand
The pod commands are the same on KIMS, so this is worth doing once. You need a copy of deploy/handover/load-bundle-pod.yaml with the image set to kims-v2:dev, imagePullPolicy: Never, ASSETS_BUCKET kims-assets, S3_REGION ap-south-1, and four extra environment entries for the stand-in (S3_ENDPOINT http://host.docker.internal:9100, S3_FORCE_PATH_STYLE "true", and AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY from the kims-s3 Secret through secretKeyRef). The database must be empty and migrated. Then, with your edited copy saved as load-bundle-pod-kind.yaml in the repo, run from <KIMS_FOLDER>/KIMS-v2-handover-2026-11-24 for the copy:
kubectl --context kind-kims-v2 -n kims apply -f ../repos/kims-v2/load-bundle-pod-kind.yaml
kubectl --context kind-kims-v2 -n kims wait --for=condition=Ready pod/kims-load-bundle --timeout=300s
kubectl --context kind-kims-v2 -n kims cp data-bundle kims-load-bundle:/bundle/data-bundle
kubectl --context kind-kims-v2 -n kims exec kims-load-bundle -- kims-entrypoint data-bundle load --from /bundle/data-bundle
kubectl --context kind-kims-v2 -n kims delete pod kims-load-bundleThe same lines work in PowerShell. Copy from the bundle's parent folder by its relative name: on Windows, kubectl cp C:\... reads C as a pod name.
The load refuses a database that already has content (publish_versions already has 1 rows; load only goes into an empty database). Against your main kims database that is expected; use rehearse-load, which makes an empty one.
#Remove the cluster
node deployment-steps/scripts/deploy.mjs local kube down (from <KIMS_FOLDER>), or kind delete cluster --name kims-v2. Nothing in the cluster needs keeping: the data is in the Compose services. See Stop and reset.
#If it goes wrong
| What you see | Likely cause | What to do |
|---|---|---|
kind create cluster fails on port 3102 |
Something else uses 3102 | Stop it (Port already in use), then step 1 again |
kind or helm not recognised (Windows) |
Window opened before the install, or Application Control | Open a new window; Windows notes |
Helm ... WARN in local check, or odd chart errors |
Helm 4 | Install Helm 3 (3.14 or later) |
| The image build fails | A build step failed (named in its output), or Docker is short of disk | Free disk and build again |
Pods stay ErrImageNeverPull |
The image wasn't loaded into kind | Step 3 |
kims-migrate fails and Helm times out |
The pod can't reach Postgres | Check Postgres is healthy and the kims-database Secret uses host.docker.internal; on Linux Engine see the warning at the top |
CMS Running but health says database: unreachable |
Same | Same |
Sign-in gives HTTP 500; kubectl --context kind-kims-v2 -n kims logs deploy/kims-cms -c cms says Could not reach http://localhost:8180/... |
No Keycloak proxy in the CMS pod (main, or kims-cms shows 1/1), or Keycloak is down |
Use windows-fixes and local kube up --skip-build; check Keycloak |
Keycloak says Invalid parameter: redirect_uri on 3102 |
Keycloak imported the realm before 3102 was added (it reads the file only on first start), or you are on main |
In the admin console, realm kims, Clients, kims-cms: add http://localhost:3102/* to Valid redirect URIs and Valid post logout redirect URIs and http://localhost:3102 to Web origins, Save |
| Media upload from the kind CMS fails as a dropped connection | Presigned URLs signed for host.docker.internal, which the browser can't reach |
Needs S3_PUBLIC_ENDPOINT from windows-fixes |
Error: release: not found in a local kube up log |
The first install, when helm status finds no release yet |
Nothing: expected |
rehearse-load refuses because a table already has rows |
Something else uses kims_rehearsal |
It recreates that database each run; check nothing else points at it |
#Sources
kims-v2/deploy/kind/kind-config.yaml,kims-v2/deploy/kind/up.sh,kims-v2/deploy/kind/down.sh,kims-v2/deploy/Dockerfile,kims-v2/deploy/entrypoint.sh,kims-v2/deploy/helm/kims/values.yaml,kims-v2/deploy/helm/kims/values-local.yaml,kims-v2/deploy/helm/kims/templates/*,kims-v2/deploy/handover/load-bundle-pod.yaml(branchmain);values-local.yaml,cms-deployment.yamlandlocal/keycloak/kims-realm.jsononwindows-fixesfor the Keycloak proxy andS3_PUBLIC_ENDPOINTdeployment-steps/local/07-kubernetes.md;scripts/commands/local/kube-up.mjs,kube-rehearse-load.mjs,_kube.mjs,scripts/lib/kube.mjs; run logs of 2026-11-28- kind quick start, loading images: https://kind.sigs.k8s.io/docs/user/quick-start/#loading-an-image-into-your-cluster
- kind configuration, extra port mappings: https://kind.sigs.k8s.io/docs/user/configuration/#extra-port-mappings
helm upgrade: https://helm.sh/docs/helm/helm_upgrade/- Helm chart hooks: https://helm.sh/docs/topics/charts_hooks/
kubectl create job --from: https://kubernetes.io/docs/reference/kubectl/generated/kubectl_create/kubectl_create_job/- Docker Desktop networking (
host.docker.internal): https://docs.docker.com/desktop/features/networking/