SDK reference / Models / Apps

ContainerApp

Kind: class

Namespace: Egulu.Sdk.Models.Apps

A serverless container app isolated under gVisor with immutable revisions, traffic splitting, scale-to-zero, and atomic rollback (ADR-0405, ADR-0701).

Properties

NameTypeJSON nameDescription
ActiveReplicasint?activeReplicasCurrently warm serving replica count (0 when scaled to zero or paused).
ActiveRevisionIdstring?activeRevisionIdPrimary serving revision identifier (for example rev-00001).
AnnotationsModels.Apps.ContainerApp_annotations?annotationsAt most 256 KiB in all; never policy input.
ArgsList<string>?argsThe arguments that replace the image's default command. A change makes a new revision.
BackendModestring?backendModeBackend driver mode: SIMULATED when backed by the fake driver, KNATIVE_GVISOR on a live cluster.
CommandList<string>?commandThe command that replaces the image's entrypoint (absent or empty: the image's own). A change makes a new revision.
ConfigDigeststring?configDigestOptional explicit configuration digest; computed deterministically when omitted.
CpuMillicoresint?cpuMillicoresCPU allocation in millicores (250..4000; defaults to 250).
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
EnvironmentModels.Apps.ContainerApp_environment?environmentEnvironment variables for the initial or updated revision.
Etagstring?etag"{generation}"; send it back in If-Match.
IdleTimeoutSecondsint?idleTimeoutSecondsIdle window in seconds before scaling active replicas to zero when minReplicas is 0 (30..3600; defaults to 900).
Imagestring?imageOCI image reference pinned by
IngressModels.Apps.AppIngress?ingressWho can reach the app (defaults to `PUBLIC`). A change makes no new revision.
LabelsModels.Apps.ContainerApp_labels?labelsAt most 64.
LivenessProbeModels.Apps.AppProbe?livenessProbeRestarts the container when it fails. A change makes a new revision.
Locationstring?locationLocation ID where the app is homed (for example lab-de1).
MaxReplicasint?maxReplicasMaximum replicas (1..20; defaults to 4).
MemoryMiBint?memoryMiBMemory allocation in MiB (128..8192; defaults to 256).
MinReplicasint?minReplicasMinimum replicas (0..20; defaults to 0 for scale-to-zero; >= 1 requires trust tier T1 per ADR-0405).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
Portint?portContainer HTTP listening port (1..65535; defaults to 8080).
ProtocolModels.Apps.AppProtocol?protocolThe protocol on `port` (defaults to `HTTP1`). A change makes a new revision.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
ReadinessProbeModels.Apps.AppProbe?readinessProbeHolds traffic back until it passes. A change makes a new revision.
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RevisionsList<Models.Apps.AppRevision>?revisionsRetained immutable revisions ordered oldest to newest (up to 20 retained per ADR-0701).
RuntimeClassNamestring?runtimeClassNameSandbox runtime class: must be gvisor in P0 (ADR-0405).
SecretPinsList<Models.Apps.SecretVersionPin>?secretPinsSecret version pins for the initial or updated revision (ADR-0701).
SecretsList<Models.Apps.SecretVersionPin>?secretsThe secret versions to inject, as `{secret, version}`; the pins of the revision are recorded in `secretPins`.
Simulatedbool?simulatedTrue when backed by FakeAppRuntimeDriver in lab/test environments rather than a live Knative + gVisor cluster.
StartupProbeModels.Apps.AppProbe?startupProbeGives a slow starter time before the other probes begin. A change makes a new revision.
StateModels.Apps.ContainerAppState?stateContainer app lifecycle states.
SuspendReasonstring?suspendReasonWhy the platform paused an app, for example spend-cap (ADR-1103 §7); clears automatically when the cause clears.
TargetConcurrencyint?targetConcurrencyConcurrent requests one instance takes before the autoscaler adds another (1..1000; defaults to 100). A change makes a new revision.
TrafficList<Models.Apps.TrafficSplitTarget>?trafficCurrent percentage traffic routing table across revisions (sums to 100).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property
Urlstring?urlHTTPS serving URL on the content domain (https://{app}--{project}.{location}.{content-domain}; never on the API domain).