Pod
Smallest deployable unit: co-scheduled containers sharing a network namespace and volumes, replaced rather than repaired.
- Provider
- k8s
- Category
- Compute
- Official docs
- https://kubernetes.io/docs/concepts/workloads/pods/
| property | type | values | required | kind default | this component |
|---|---|---|---|---|---|
| autoscaling | boolean | — | no | false | ▸ false |
| criticality | enum | low | medium | high | no | medium | inherited |
| instancePerEntity | boolean | — | no | false | inherited |
| instances | integer | — | no | — | ▸ 1 |
| managed | boolean | — | no | false | ▸ false |
| ownsData | boolean | — | no | true | inherited |
| restartPolicy | enum | always | on-failure | never | no | always | inherited |
| runtime | string | — | no | — | inherited |
| selfHealing | boolean | — | no | false | inherited |
| shardingStrategy | enum | none | consistent-hash | range | lookup | no | none | inherited |
| sharedNetworkNamespace | boolean | — | no | true | inherited |
| sharedStorageVolumes | boolean | — | no | true | inherited |
| singleWriter | boolean | — | no | false | inherited |
| stateless | boolean | — | no | true | inherited |
Every rule whose selector covers this component's kind or its category. Whether a rule fires depends on the design: its properties, its edges and its groups.
A service that calls a third party synchronously, with no queue or workflow engine attached, has nowhere to park the request when the third party is slow or down. The failure becomes the user's problem instead of a retried job.
- — all of these hold:
- — the node has at least one synchronous outgoing edge to a third-party-api
- — this does not hold:
- — the node has at least one connected edge joining a workflow-engine or queue
Calling a worker synchronously puts the background job on the request path. The caller waits for the slowest part of the fan-out.
- — the node has at least one synchronous outgoing edge to a worker
A stateful service on a consistent hash ring needs something that owns the ring: detect a dead host, pick a replacement, tell everyone. Without a coordination service the ring is edited by hand during the outage.
- — all of these hold:
- — the node's `shardingStrategy` is "consistent-hash"
- — this does not hold:
- — the node has at least one connected edge joining a coordination-service
A stateful compute node pinned to exactly one availability zone disappears with that zone, and its state goes with it. Nodes inside a cell are exempt, because there the cell is deliberately single-zone and redundancy comes from the other cells.
- — all of these hold:
- — the node's `stateless` is false
- — the node sits inside exactly 1 availability-zone group
- — this does not hold:
- — the node sits inside at least one cell group
nodes:
- { id: "pod", component: "k8s-pod" }# yaml-language-server: $schema=../../schema/component.schema.json # Kubernetes Pod: the smallest deployable unit, one or more co-located containers sharing a # network namespace and filesystem volumes. Per "Pods" a Pod is an ephemeral, disposable entity # that is not self-healing: a failed Pod is replaced only by a workload controller, and a Pod # persists until deleted. Per "DaemonSet" an unspecified restartPolicy defaults to Always. schemaVersion: "1" type: "component" id: "k8s-pod" kind: "app-server" provider: "k8s" docs: "https://kubernetes.io/docs/concepts/workloads/pods/" aliases: ["po"] defaults: managed: false instances: 1 autoscaling: false properties: restartPolicy: type: "enum" values: ["always", "on-failure", "never"] default: "always" sharedNetworkNamespace: type: "boolean" default: true sharedStorageVolumes: type: "boolean" default: true selfHealing: type: "boolean" default: false