Skip to content
ModuleM1 — The platform as deployed
After this session you canRender the chart, read what it would create, and say for any workload what shape it has, what it hosts and which database it uses.
TimeFacilitated: 36 min · On your own: 36 min
Before you startM0-S2: the lab cluster and the unpacked osos/ chart folder.
Go deeperService topology · Helm chart: service catalog

◆ Orientation (1 min) — Read before you install

Section titled “◆ Orientation (1 min) — Read before you install”

An operator who installs a chart without reading it learns what it does from the incidents. Here you read it first. You render the chart on your own computer, without touching the cluster, and build an inventory of everything it would create. You will use that inventory in every later module: to know which pod to restart, which database to back up and which Service an error came from.

▤ Concept (6 min) — Five shapes, two combined pods

Section titled “▤ Concept (6 min) — Five shapes, two combined pods”

The osos chart installs a whole Osos instance into one namespace from one helm install. Every object it creates is named <fullname>-<short name>. The full name is the release name followed by -osos, unless the release name already contains osos. Your release in this course is nw in the namespace northwind, so its objects are called nw-osos-web, nw-osos-identity, nw-osos-apigateway and so on. Every workload also carries the label app: osos-<short name>, which stays the same whatever the release is called: use it in kubectl selectors.

ShapeWhat it meansServices
Combined podNo Deployment of its own; the application runs inside one of the combined podsdata, workflow, reaction, timeline, logging, dependency, packaging, audit, comments, functions, integration, notification_api
Always deployedIts own Deployment, rendered unconditionallyweb, identity, apigateway, storage, notification, indexing, websocket, scheduler
Switched on by enabledRendered only when its enabled value is truertc, mobilePreviewer, endUser, openfga, ai (off by default); altcha (on by default)
Deployed or externalEither its own Deployment (deployment.enabled: true) or an address elsewhere (url)email, sms, push_notification, clock, translation, qrGenerator, fileConversion
JobsRun to completion, not kept runningThe migration Job and the message-bus set-up Job (both run by Helm at install and upgrade); the directory importers (scheduled CronJobs, off by default)

The deployed or external shape exists because many organizations run the message senders once, as shared functions, for several platforms. The chart’s defaults point email, sms, push_notification and clock at shared functions outside the release. In your lab nothing else exists, so in M2-S1 you switch the email sender to deploy inside the release.

Combined pods: many applications, stable addresses

Section titled “Combined pods: many applications, stable addresses”

Twelve applications share a small number of combined pods. By default there are two: core-rest hosts eleven applications and core-data hosts data, the engine that every other service calls. The list of pods is the value core.deployments, and each pod’s applications are its appsEnabled list. Sharing a process saves memory, and calls between applications in the same pod can skip the network.

What does not change is how everyone else reaches an application: each of the twelve keeps its own Kubernetes Service (nw-osos-workflow, nw-osos-reaction and so on). The Service points at whichever pod hosts that application today. Each application also keeps its own message queue and its own database. Moving an application to another pod moves the process only; its address, queue and data stay put.

flowchart LR
  subgraph S["Services (stable addresses)"]
    SW["nw-osos-workflow"]
    SR["nw-osos-reaction"]
    SA["nw-osos-audit"]
    SD["nw-osos-data"]
  end
  subgraph P["Combined pods"]
    CR["core-rest<br/>workflow, reaction, audit and eight more"]
    CD["core-data<br/>data"]
  end
  SW --> CR
  SR --> CR
  SA --> CR
  SD --> CD

What to notice: callers only ever use the Service names on the left. Which pod answers is a values decision, and you change it in M7 to isolate a misbehaving application.

The combined pods build each application’s MongoDB address from one value, core.mongoUrlTemplate, by replacing a literal {db} with the application’s database name:

Application{db} becomes
data, dependency, packagingdata (one shared database)
reactiondata for the shared data, and reaction for its own
integrations, logging, notification-api, timeline, workflowits own name
audit, comments, functionsnothing: they store nothing in MongoDB

The standalone services (identity, storage, scheduler, translation and others) each take their own MongoDB address in their own values block. You set all of them in M2-S1.

▶ Guided demo (5 min) — Render the chart without installing it

Section titled “▶ Guided demo (5 min) — Render the chart without installing it”

Starting state. Your working folder from M0-S2, with the unpacked osos/ folder.

  1. Create pack-values.yaml and paste into it the license values from your vendor’s evaluation pack, exactly as given. This file never leaves your computer: add it to .gitignore now.

    # pack-values.yaml: NEVER COMMIT. License values from your vendor's evaluation pack.
    # <from your vendor>
  2. Create render-check.yaml: the smallest set of values that lets the chart render, so you can read it. The values are lab placeholders; you write the real values file in M2-S1.

    # render-check.yaml: LAB ONLY, for reading the chart. Not an install file.
    rootHost: localhost
    secrets:
    sharedKey: lab-only-render-check-key-0000000000
    core:
    mongoUrlTemplate: "mongodb://mongo-0.mongo.datastores.svc.cluster.local:27017/nw-{db}?replicaSet=rs0"
    web:
    config:
    clientId: nw-web
    altcha:
    config:
    altchaHMACKey: lab-only-altcha-hmac-key
  3. Render it and count what it would create:

    Terminal window
    helm template nw ./osos -n northwind -f pack-values.yaml -f render-check.yaml > rendered.yaml
    grep -E '^kind:' rendered.yaml | sort | uniq -c

    You see a count per kind: about a dozen Deployments, many more Services, ConfigMaps and Secrets, three Jobs (two that set up and remove the message bus’s virtual host, and the migration) and two Ingresses (the main one and the identity server’s).

⛏ Lab (17 min) — Your inventory of the release

Section titled “⛏ Lab (17 min) — Your inventory of the release”

Goal. A one-page inventory of the nw release, built from your own render, that you keep open for the rest of the course.

Before you start. rendered.yaml from the demo.

  1. List the Deployments: grep -A3 '^kind: Deployment' rendered.yaml | grep '^ name:' | sort.
  2. List the Jobs, and look at their Helm annotations: grep -A8 '^kind: Job' rendered.yaml | grep -E 'name:|helm.sh/hook'.
  3. Find each combined pod’s applications: grep -E '^ +(CELL_)?APPS_ENABLED' rendered.yaml | sort -u.
  4. List the Services: grep -A3 '^kind: Service$' rendered.yaml | grep '^ name:' | sort.
  5. Find where the Ingress sends /api and /: grep -B2 -A6 'path: /api' rendered.yaml and the same for path: /.
  6. Fill in the inventory below in a text file, inventory.md.
DeploymentShapeHostsUses MongoDB database
nw-osos-core-rest
nw-osos-core-data
nw-osos-identity
nw-osos-apigateway
nw-osos-indexing
nw-osos-scheduler
(every other Deployment you listed)
  1. Under the table, answer: which Service would a call to the workflow application use, and which pod answers it? Which two Jobs run during an install?

Check.

  • Your table lists every Deployment from step 1, and no Deployment for any of the twelve hosted applications.
  • core-rest and core-data show the applications from step 3.
  • data, dependency and packaging share the data database in your table.
  • You named the migration Job and the message-bus set-up Job, with their hook annotations.
  • You can say which Service the Ingress sends /api to.

Pass condition. Your inventory matches the model answer for every row, and you can find any workload of the release in it in under ten seconds.

If something goes wrong

What you seeWhat to do
helm template stops with ... is requiredA value the chart insists on is missing. The message names it: add it to render-check.yaml with a lab-only placeholder.
It stops naming a value that belongs to your vendor’s packpack-values.yaml is empty or not in the form your vendor gave. Copy it again from the pack.
It stops with core.mongoUrlTemplate and {db}The template must contain the literal text {db}, braces included.
grep finds nothingCheck you are in the folder that holds rendered.yaml, and that the render printed no error.
Model answer
DeploymentShapeHostsUses MongoDB database
nw-osos-core-restCombined podaudit, notification-api, reaction, dependency, comments, timeline, workflow, logging, packaging, functions (integrations is listed but off until integration.enabled)nw-data, nw-reaction, nw-notification-api, nw-timeline, nw-workflow, nw-logging
nw-osos-core-dataCombined poddatanw-data
nw-osos-identityAlwaysthe identity server (sign-in)its own, from identity.config.mongodb.url
nw-osos-apigatewayAlwaysthe gatewaynone: it reads Redis
nw-osos-webAlwaysthe web portalnone
nw-osos-storageAlwaysfilesits own
nw-osos-notificationAlwaysthe message workernone
nw-osos-indexingAlwayssearch indexes (background jobs on Redis)the data database
nw-osos-websocketAlwayslive updates in the browsernone
nw-osos-schedulerAlwaysscheduled jobsits own
nw-osos-translationDeployed or external (deployed by default)translationits own
nw-osos-altchaSwitched on (on by default)human verificationnone

A call to the workflow application uses the Service nw-osos-workflow; today core-rest answers it. The install runs the message-bus set-up Job before the workloads (pre-install) and the migration Job after them (post-install, post-upgrade). The Ingress sends /api to nw-osos-apigateway and / to nw-osos-web.

✓ Practice (6 min) — Check your understanding

Section titled “✓ Practice (6 min) — Check your understanding”
PracticeChoose one answer.

A colleague searches the cluster for a Deployment called nw-osos-workflow and finds none. They conclude the workflow application is not running. What do you tell them?

  1. Explanation for A

    ✗ Incorrect

    Not this one: workflow is hosted by default; it simply has no Deployment of its own. See The five deployment shapes.

  2. Explanation for B

    ✓ Correct

    Correct: the twelve hosted applications have Services, queues and databases, but no Deployment. See Combined pods.

  3. Explanation for C

    ✗ Incorrect

    Not this one: no Deployment exists under any name for a hosted application. See Combined pods.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

Your organization runs the email sender as a shared function for three platforms. How is that expressed in this release’s values?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the email sender uses the deployed-or-external shape, not a plain switch. See The five deployment shapes.

  2. Explanation for B

    ✓ Correct

    Correct: deployed-or-external means either a Deployment in this release or an address elsewhere. See The five deployment shapes.

  3. Explanation for C

    ✗ Incorrect

    Not this one: only the twelve hosted applications can run in a combined pod. See Combined pods.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

core.mongoUrlTemplate is mongodb://db.example.com:27017/nw-{db}. Which database does the packaging application use?

  1. Explanation for A

    ✗ Incorrect

    Not this one: packaging shares the data application’s database. See Which database each application uses.

  2. Explanation for B

    ✓ Correct

    Correct: data, dependency and packaging all substitute data for {db}. See Which database each application uses.

  3. Explanation for C

    ✗ Incorrect

    Not this one: that is true of audit, comments and functions, not packaging. See Which database each application uses.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

PracticeChoose one answer.

You plan to give the reaction application a pod of its own. What happens to its Service, queue and database?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the Service, queue and database belong to the application, not the pod. See Combined pods.

  2. Explanation for B

    ✗ Incorrect

    Not this one: nothing is copied or migrated when an application moves pods. See Combined pods.

  3. Explanation for C

    ✓ Correct

    Correct: moving an application moves the process only. You do it in M7 as a recovery step. See Combined pods.

Check your answer

The correct answer is C. Open the explanation under each option to see why.

PracticeChoose one answer.

Your release is called osos-prod. What is the name of its identity Deployment?

  1. Explanation for A

    ✗ Incorrect

    Not this one: the chart does not repeat osos when the release name already contains it. See One chart, one namespace, one release.

  2. Explanation for B

    ✓ Correct

    Correct: a release name that contains the chart name is used as the full name on its own. See One chart, one namespace, one release.

  3. Explanation for C

    ✗ Incorrect

    Not this one: every object carries the full-name prefix, so several releases can share a cluster. See One chart, one namespace, one release.

Check your answer

The correct answer is B. Open the explanation under each option to see why.

↺ Recap (1 min) — What you can now read

Section titled “↺ Recap (1 min) — What you can now read”

You can render the chart without installing it, list every workload it would create, and say for each one its shape, what it hosts and which database it uses. You have an inventory you will keep open.

Next. M1-S2 connects the boxes: how a browser request reaches the right application, how services pass work to each other on the message bus, what Redis is for, and what stops when one part fails.