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
| Name | Type | JSON name | Description |
|---|---|---|---|
ActiveReplicas | int? | activeReplicas | Currently warm serving replica count (0 when scaled to zero or paused). |
ActiveRevisionId | string? | activeRevisionId | Primary serving revision identifier (for example rev-00001). |
Annotations | Models.Apps.ContainerApp_annotations? | annotations | At most 256 KiB in all; never policy input. |
Args | List<string>? | args | The arguments that replace the image's default command. A change makes a new revision. |
BackendMode | string? | backendMode | Backend driver mode: SIMULATED when backed by the fake driver, KNATIVE_GVISOR on a live cluster. |
Command | List<string>? | command | The command that replaces the image's entrypoint (absent or empty: the image's own). A change makes a new revision. |
ConfigDigest | string? | configDigest | Optional explicit configuration digest; computed deterministically when omitted. |
CpuMillicores | int? | cpuMillicores | CPU allocation in millicores (250..4000; defaults to 250). |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DeleteTime | DateTimeOffset? | deleteTime | The deleteTime property |
DisplayName | string? | displayName | Up to 63 characters. |
Environment | Models.Apps.ContainerApp_environment? | environment | Environment variables for the initial or updated revision. |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
IdleTimeoutSeconds | int? | idleTimeoutSeconds | Idle window in seconds before scaling active replicas to zero when minReplicas is 0 (30..3600; defaults to 900). |
Image | string? | image | OCI image reference pinned by |
Ingress | Models.Apps.AppIngress? | ingress | Who can reach the app (defaults to `PUBLIC`). A change makes no new revision. |
Labels | Models.Apps.ContainerApp_labels? | labels | At most 64. |
LivenessProbe | Models.Apps.AppProbe? | livenessProbe | Restarts the container when it fails. A change makes a new revision. |
Location | string? | location | Location ID where the app is homed (for example lab-de1). |
MaxReplicas | int? | maxReplicas | Maximum replicas (1..20; defaults to 4). |
MemoryMiB | int? | memoryMiB | Memory allocation in MiB (128..8192; defaults to 256). |
MinReplicas | int? | minReplicas | Minimum replicas (0..20; defaults to 0 for scale-to-zero; >= 1 requires trust tier T1 per ADR-0405). |
Name | string? | name | The resource name, for example projects/p/locations/l/instances/i. |
Port | int? | port | Container HTTP listening port (1..65535; defaults to 8080). |
Protocol | Models.Apps.AppProtocol? | protocol | The protocol on `port` (defaults to `HTTP1`). A change makes a new revision. |
PurgeTime | DateTimeOffset? | purgeTime | The purgeTime property |
ReadinessProbe | Models.Apps.AppProbe? | readinessProbe | Holds traffic back until it passes. A change makes a new revision. |
Reconciling | bool? | reconciling | True while the platform works toward the spec. |
Revisions | List<Models.Apps.AppRevision>? | revisions | Retained immutable revisions ordered oldest to newest (up to 20 retained per ADR-0701). |
RuntimeClassName | string? | runtimeClassName | Sandbox runtime class: must be gvisor in P0 (ADR-0405). |
SecretPins | List<Models.Apps.SecretVersionPin>? | secretPins | Secret version pins for the initial or updated revision (ADR-0701). |
Secrets | List<Models.Apps.SecretVersionPin>? | secrets | The secret versions to inject, as `{secret, version}`; the pins of the revision are recorded in `secretPins`. |
Simulated | bool? | simulated | True when backed by FakeAppRuntimeDriver in lab/test environments rather than a live Knative + gVisor cluster. |
StartupProbe | Models.Apps.AppProbe? | startupProbe | Gives a slow starter time before the other probes begin. A change makes a new revision. |
State | Models.Apps.ContainerAppState? | state | Container app lifecycle states. |
SuspendReason | string? | suspendReason | Why the platform paused an app, for example spend-cap (ADR-1103 §7); clears automatically when the cause clears. |
TargetConcurrency | int? | targetConcurrency | Concurrent requests one instance takes before the autoscaler adds another (1..1000; defaults to 100). A change makes a new revision. |
Traffic | List<Models.Apps.TrafficSplitTarget>? | traffic | Current percentage traffic routing table across revisions (sums to 100). |
Uid | string? | uid | UUIDv7, never reused. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |
Url | string? | url | HTTPS serving URL on the content domain (https://{app}--{project}.{location}.{content-domain}; never on the API domain). |