KKIMS on-site docs
Start here

The order of work (master checklist)

The whole deployment in the order it has to happen, as a checklist linking every page (before you go, UAT if KIMS wants it, then production, then hand-over), plus the table of values to collect from KIMS and the network paths to ask for.

This is the master checklist. Work down it, tick each box, and open the linked page for the detail. Every page says what must already be done, so if you jump ahead the page will tell you.

Note

Production is always deployed. UAT is optional, and KIMS had not decided by November 2026 whether they want one. Ask on arrival. With UAT, you do the environment steps for UAT first, run the acceptance checks there, then do them again for production. Without UAT, do them once, for production. The steps are the same either way; Environments lists what differs.

#The shape of the work

text
Before you go          On site, per environment (UAT first if wanted, then production)          Close
-------------          ---------------------------------------------------------------          -----
workstation  ---->     decide UAT? -> AWS access -> certificates (start early, DNS is slow)  -> handover
get the code           -> networking, EKS, ECR, RDS, S3, IAM, CloudFront
check the bundle       -> push code -> Keycloak client -> Secrets -> Helm values
local rehearsal        -> Jenkins folder, credentials, jobs -> first deploy
collect values         -> load content -> people -> CloudFront function -> first site build
                       -> Emergency image -> Google -> acceptance
                       production only: DNS go-live, when KIMS decides

Who does what: KIMS's infrastructure team usually owns AWS, Jenkins and Keycloak administration, and may type the commands themselves. You bring the code, the data bundle, the values files and the know-how. Every AWS step says "if KIMS has it, check it against these settings and move on; if not, create it".

#Before you go on site

#1. Read the start pages

#2. Set up your laptop

Do these in order. Each page has Linux, macOS and Windows instructions and a check.

The local stack runs the same code, the same image, the same Helm chart and the same site build, against stand-ins for KIMS's services. Every failure you meet here is one you will not meet in front of KIMS.

#4. Prepare for the day

  • Send KIMS the values to collect and the network paths below, ahead of the visit if you can, so their team can prepare.
  • Ask KIMS the questions in Questions to settle with KIMS.
  • Check the data bundle again after every copy (Get the code).
  • Have somewhere outside Git to keep the values you collect: a password manager for anything secret, a plain file for the rest.

#On site: the environment steps

Do this whole block once per environment: first UAT (if KIMS wants it), then production. Where a step is done once for both, it says so.

#5. Start of the day

  • Confirm with KIMS: production only, or UAT as well? (Environments)
  • Confirm the region: the one KIMS's EKS cluster is in. Hyderabad ap-south-2 is recommended; Mumbai ap-south-1 if the cluster is there.
  • Get AWS access and check it with aws sts get-caller-identity.
  • Request the certificates first (Certificates and DNS): the website certificate in us-east-1, the CMS certificate in the cluster's region. DNS validation waits on KIMS's DNS team, which can take a while, so start it now and work on while it runs.

#6. AWS

  • Networking: VPC, private subnets, security groups, NAT, the S3 gateway endpoint.
  • EKS: cluster access, the namespace (kims, UAT kims-uat), the ingress class, the OIDC provider.
  • ECR: the image repository (once for both environments).
  • RDS PostgreSQL: the database kims, its security group, the connection string.
  • S3 buckets: assets (with versioning and the CORS rule) and website.
  • IAM: the pods' IRSA role (assets bucket only), the Jenkins agent's policy (website bucket, CloudFront, ECR), cluster access for the agent.
  • CloudFront: the distribution, Origin Access Control, bucket policy, error pages. (The viewer-request function is attached later, before the first site build.)
  • Optional: Costs and limits.

#7. Configuration and code

#8. Keycloak

#9. Secrets and Helm values

  • Kubernetes Secrets: kims-database, kims-keycloak, kims-app, kims-jenkins. The Jenkins token is needed here, so create the Jenkins user and token (API token) before or alongside this step.
  • Helm values: from values-production.example.yaml (UAT: values-uat.example.yaml), including the ingress annotations and KIMS_BOOTSTRAP_ADMINS.

#10. Jenkins

#11. Outbound access

#12. First deploy and content

  • First deploy: run <FOLDER>/kims-platform; the migrate hook creates the tables; check pods and /api/health?check=ready.
  • Point the CMS host's DNS record at the load balancer (Certificates and DNS).
  • Load the content: the data bundle into RDS and the assets bucket, from the one-off pod. Pass the right region.

#13. People

#14. The website

  • The website: attach the viewer-request function and the 404 responses, run the first site build (PUBLISH_VERSION 1, CAUSE manual), check pages, /kn/, /hi/, /sitemap.xml, /robots.txt on the d....cloudfront.net address.
  • Fix the Emergency image before the first publish (same page): until emergency_CoE.png is uploaded or replaced, every publish is refused.
  • UAT only: point UAT's website host at its distribution as soon as its build works.

#15. Google

These can run in parallel with steps 12 to 14 once the CMS is up.

#16. Acceptance

  • Acceptance checks: sign-in, no-access, review and approve, self-approval refused, publish to live, a non-home page, a 404, revocation, media upload.
  • UAT only: KIMS accepts UAT. Then go back to step 5 for production.

#Production go-live and close

#17. Go live

  • Production cutover: KIMS decides the moment; DNS for the website host goes to the production distribution; production has no SITE_NOINDEX; redirects if wanted; rollback plan agreed.

#18. Hand over

#Values to collect from KIMS

Collect every row before the step that uses it. With UAT, collect the rows marked "per environment" twice: UAT and production have different values. Keep secrets (marked) in a password manager, never in this table, a chat or Git.

#The decisions

Value Example Who gives it Needed for Goes into
Production only, or UAT as well "UAT and production" KIMS (project owner) Everything Which environments to set up
AWS account and region (the EKS cluster's region) 123456789012, ap-south-2 KIMS infrastructure AWS access, every AWS page S3_REGION (Helm values, kims-site-env, the load pod), IAM ARNs
How a release reaches production, if UAT exists Production job run by hand on a commit UAT passed KIMS Push the code The uat and main branches
When production goes live A date KIMS Production cutover The website DNS change

#Code and Jenkins (shared by both environments)

Value Example Who gives it Needed for Goes into
Git repository URL and push access for you https://git.kims.example/kims-v2.git KIMS Push the code git remote, both jobs in each folder
Jenkins URL, and an admin who can create folders, jobs and credentials https://jenkins.kims.example KIMS Jenkins overview The two folders and jobs
The kims-build agent: which machine, its OS and CPU architecture Linux, amd64 KIMS Jenkins agent The agent's tools
The Jenkins agent's IAM role arn:aws:iam::<ACCOUNT_ID>:role/jenkins-agent KIMS IAM Inline policy kims-site-build
Image registry host and push access <ACCOUNT_ID>.dkr.ecr.ap-south-2.amazonaws.com KIMS, or create it (ECR) Platform job REGISTRY parameter, kims-registry credential or the ECR credential helper
EKS node architecture amd64, arm64 or both KIMS Platform job PLATFORMS parameter

#Per environment

Value Example (production) Who gives it Needed for Goes into
EKS cluster name, namespace, and who can deploy to it kims-eks, kims (UAT kims-uat) KIMS EKS NAMESPACE, kims-kubeconfig credential or an access entry
Ingress class, and whether the CMS is on the internet or VPN only alb, internet KIMS EKS, Helm values cms.ingress.className, alb.ingress.kubernetes.io/scheme
CMS host name cms.kims.example KIMS Keycloak client, Helm values CMS_URL, cms.ingress.host, redirect URIs, the assets CORS rule
CMS certificate ARN (cluster's region), or KIMS's TLS Secret arn:aws:acm:ap-south-2:... Create it (Certificates and DNS) or KIMS Helm values alb.ingress.kubernetes.io/certificate-arn or cms.ingress.tlsSecretName
Website host name (and the bare domain, if wanted) www.kims.example KIMS CloudFront SITE_URL, alternate domain name
Website certificate ARN (us-east-1) arn:aws:acm:us-east-1:... Create it (Certificates and DNS) CloudFront The distribution
Someone in KIMS's DNS team A name KIMS Certificates and DNS Validation CNAMEs, the CMS and website records
RDS endpoint, database kims, its owner (secret: password) kims-prod.abc123xyz.ap-south-2.rds.amazonaws.com KIMS, or create it (RDS) Secrets, Credentials Secret kims-database, credential kims-database-url
Assets and website bucket names kims-hospitals-assets-prod, kims-hospitals-website-prod KIMS, or create them (S3) Helm values, Credentials ASSETS_BUCKET, WEBSITE_BUCKET (values and kims-site-env)
CloudFront distribution id, its d....cloudfront.net domain, someone who can edit it E1ABCDEF234567 KIMS, or create it (CloudFront) Website CLOUDFRONT_DISTRIBUTION_ID in kims-site-env
The pods' IAM role ARN (IRSA) arn:aws:iam::<ACCOUNT_ID>:role/kims-app-prod Create it (IAM) Helm values serviceAccount.roleArn
Keycloak issuer URL, the CMS client id and (secret) client secret https://sso.kims.example/realms/kims, kims-cms KIMS Keycloak admin Keycloak client KEYCLOAK_ISSUER, KEYCLOAK_CLIENT_ID, Secret kims-keycloak
The first Admin's email (a KIMS Keycloak account with a verified email) someone@kims.example KIMS People KIMS_BOOTSTRAP_ADMINS
A Jenkins user for the CMS and its (secret) API token kims-cms-builds KIMS Jenkins admin API token JENKINS_USER, Secret kims-jenkins
The site build job's URL <JENKINS_URL>/job/kims-production/job/kims-site-build From the job Helm values JENKINS_JOB_URL
Google Tag Manager container id, if any GTM-XXXXXXX KIMS marketing Tag Manager GTM_ID in kims-site-env
Whether redirects are wanted on day one Yes or no KIMS CloudFront KeyValueStore, KIMS_REDIRECTS_KVS_ARN

#Google (once, usually shared)

Value Who gives it Needed for
Google Cloud project, billing account, owner KIMS Cloud project
The Google account that manages KIMS's Business Profile locations KIMS marketing Reviews OAuth
The NAT egress IPs of the cluster (for the API key restriction) KIMS infrastructure Translation API key

#Values you generate yourself

Value How Where it goes
SESSION_SECRET (at least 32 characters) Generated when the Secret is created Secret kims-app, key session-secret
SECRETS_KEY (32 random bytes, base64) Generated once; never change it for the life of the environment Secret kims-app, key secrets-key

Kubernetes Secrets has the commands for every OS.

#Network paths to ask KIMS for

KIMS opens these before the step that needs them. A closed path usually fails quietly, much later.

From To Port Needed for Fails as
EKS pods RDS 5432 First deploy Pods never ready
EKS pods Keycloak (the issuer host) 443 People Sign-in fails
Keycloak https://<CMS_HOST>/api/auth/backchannel-logout 443 Revocation Sign-out takes up to 5 minutes
EKS pods S3 and STS in the region 443 Content load Uploads and image sizes fail
EKS pods The Jenkins URL 443 Website Publish succeeds, no build starts
EKS pods translation.googleapis.com, www.googleapis.com, oauth2.googleapis.com, mybusiness.googleapis.com, mybusinessaccountmanagement.googleapis.com, mybusinessbusinessinformation.googleapis.com 443 Google Translation and reviews fail
Jenkins agent RDS (each environment's) 5432 Site build job Site build fails at its first stage
Jenkins agent S3, cloudfront.amazonaws.com, CloudFront KeyValueStore API (if redirects) 443 Website Site build fails at Deploy
Jenkins agent The image registry, the EKS API 443 First deploy Platform job fails at Image or Deploy
Jenkins agent The npm registry, KIMS's Git 443 Platform job Both jobs fail at Install or Checkout
Staff browsers The assets bucket (<ASSETS_BUCKET>.s3.<REGION>.amazonaws.com) 443 People Media uploads fail
Your laptop The EKS API, or a bastion, if KIMS lets you in 443 EKS You need KIMS's team to run the kubectl lines

#Questions to settle with KIMS

  • Production only, or UAT as well? If UAT, which parts are shared (cluster, RDS instance, Keycloak realm, Jenkins agent)? The code expects separate databases, buckets, distributions, Secrets and Keycloak clients.
  • How does a release reach production? (Proposed: with UAT, git push kims uat:main after UAT acceptance, then the production platform job.)
  • Is the CMS on the internet or VPN only? If VPN only, can Keycloak reach its back-channel logout URL?
  • Do KIMS's Keycloak users come from Active Directory or LDAP, and does the federation mark emails as verified? (The CMS refuses unverified emails.)
  • Redirects from the old site on day one, or later?
  • Who decides the go-live moment, and who changes the website's DNS?
  • Where should the Emergency page hero image (emergency_CoE.png) come from?

#Sources

  • kims-v2/docs/ON-SITE-DEPLOYMENT.md (branch main: "Production, and UAT if KIMS wants it", "What to collect from KIMS", "AWS set-up", steps 1 to 12)
  • kims-v2/deploy/jenkins/README.md, kims-v2/deploy/jenkins/README-site.md
  • kims-v2/deploy/helm/kims/values-production.example.yaml, values-uat.example.yaml
  • kims-v2/deploy/jenkins/site-env-production.example
  • kims-v2/docs/CONFIG.md
  • kims-deploy-info/kims/00-prerequisites.md (the engineer's values and network tables)
Built 2026-11-29. Commands are shown for the system picked at the top; every block has all three.