M1-S1 — What the chart deploys
Section titled “M1-S1 — What the chart deploys”| Module | M1 — The platform as deployed |
| After this session you can | Render the chart, read what it would create, and say for any workload what shape it has, what it hosts and which database it uses. |
| Time | Facilitated: 36 min · On your own: 36 min |
| Before you start | M0-S2: the lab cluster and the unpacked osos/ chart folder. |
| Go deeper | Service 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”One chart, one namespace, one release
Section titled “One chart, one namespace, one release”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.
The five deployment shapes
Section titled “The five deployment shapes”| Shape | What it means | Services |
|---|---|---|
| Combined pod | No Deployment of its own; the application runs inside one of the combined pods | data, workflow, reaction, timeline, logging, dependency, packaging, audit, comments, functions, integration, notification_api |
| Always deployed | Its own Deployment, rendered unconditionally | web, identity, apigateway, storage, notification, indexing, websocket, scheduler |
Switched on by enabled | Rendered only when its enabled value is true | rtc, mobilePreviewer, endUser, openfga, ai (off by default); altcha (on by default) |
| Deployed or external | Either its own Deployment (deployment.enabled: true) or an address elsewhere (url) | email, sms, push_notification, clock, translation, qrGenerator, fileConversion |
| Jobs | Run to completion, not kept running | The 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.
Which database each application uses
Section titled “Which database each application uses”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, packaging | data (one shared database) |
reaction | data for the shared data, and reaction for its own |
integrations, logging, notification-api, timeline, workflow | its own name |
audit, comments, functions | nothing: 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.
-
Create
pack-values.yamland paste into it the license values from your vendor’s evaluation pack, exactly as given. This file never leaves your computer: add it to.gitignorenow.# pack-values.yaml: NEVER COMMIT. License values from your vendor's evaluation pack.# <from your vendor> -
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: localhostsecrets:sharedKey: lab-only-render-check-key-0000000000core:mongoUrlTemplate: "mongodb://mongo-0.mongo.datastores.svc.cluster.local:27017/nw-{db}?replicaSet=rs0"web:config:clientId: nw-webaltcha:config:altchaHMACKey: lab-only-altcha-hmac-key -
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.yamlgrep -E '^kind:' rendered.yaml | sort | uniq -cYou 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.
- List the Deployments:
grep -A3 '^kind: Deployment' rendered.yaml | grep '^ name:' | sort. - List the Jobs, and look at their Helm annotations:
grep -A8 '^kind: Job' rendered.yaml | grep -E 'name:|helm.sh/hook'. - Find each combined pod’s applications:
grep -E '^ +(CELL_)?APPS_ENABLED' rendered.yaml | sort -u. - List the Services:
grep -A3 '^kind: Service$' rendered.yaml | grep '^ name:' | sort. - Find where the Ingress sends
/apiand/:grep -B2 -A6 'path: /api' rendered.yamland the same forpath: /. - Fill in the inventory below in a text file,
inventory.md.
| Deployment | Shape | Hosts | Uses 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) |
- 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-restandcore-datashow the applications from step 3. -
data,dependencyandpackagingshare thedatadatabase 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
/apito.
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 see | What to do |
|---|---|
helm template stops with ... is required | A 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 pack | pack-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 nothing | Check you are in the folder that holds rendered.yaml, and that the render printed no error. |
Model answer
| Deployment | Shape | Hosts | Uses MongoDB database |
|---|---|---|---|
nw-osos-core-rest | Combined pod | audit, 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-data | Combined pod | data | nw-data |
nw-osos-identity | Always | the identity server (sign-in) | its own, from identity.config.mongodb.url |
nw-osos-apigateway | Always | the gateway | none: it reads Redis |
nw-osos-web | Always | the web portal | none |
nw-osos-storage | Always | files | its own |
nw-osos-notification | Always | the message worker | none |
nw-osos-indexing | Always | search indexes (background jobs on Redis) | the data database |
nw-osos-websocket | Always | live updates in the browser | none |
nw-osos-scheduler | Always | scheduled jobs | its own |
nw-osos-translation | Deployed or external (deployed by default) | translation | its own |
nw-osos-altcha | Switched on (on by default) | human verification | none |
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”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?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
Your organization runs the email sender as a shared function for three platforms. How is that expressed in this release’s values?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
core.mongoUrlTemplate is mongodb://db.example.com:27017/nw-{db}. Which database does the
packaging application use?
Check your answer
The correct answer is B. Open the explanation under each option to see why.
You plan to give the reaction application a pod of its own. What happens to its Service, queue and database?
Check your answer
The correct answer is C. Open the explanation under each option to see why.
Your release is called osos-prod. What is the name of its identity Deployment?
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.