From 6af67ebe5ca832ac00f142411794197cc67b7b6c Mon Sep 17 00:00:00 2001
From: "aspire-repo-bot[bot]"
<268009190+aspire-repo-bot[bot]@users.noreply.github.com>
Date: Sat, 10 Oct 2026 00:55:20 +0000
Subject: [PATCH] docs: document DCP Kubernetes API timeout configuration
Documents the new DcpPublisher:KubernetesApiTimeout,
KubernetesInitializationAdditionalTimeout, and
KubernetesCreateRecoveryTimeout options added in
microsoft/aspire#20752, along with the ambiguous-create
recovery behavior they enable.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---
.../content/docs/app-host/configuration.mdx | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/frontend/src/content/docs/app-host/configuration.mdx b/src/frontend/src/content/docs/app-host/configuration.mdx
index c395a3e6f7..7246ac63d7 100644
--- a/src/frontend/src/content/docs/app-host/configuration.mdx
+++ b/src/frontend/src/content/docs/app-host/configuration.mdx
@@ -224,3 +224,27 @@ You might override `DcpCliPath` in these scenarios:
+
+### DCP Kubernetes API timeouts
+
+The AppHost communicates with DCP through a local Kubernetes-style API. These settings control how long the AppHost waits on that API before giving up, and they're configurable for environments where DCP is slower to respond, such as resource-constrained CI agents or heavily loaded developer machines.
+
+```json title="appsettings.json"
+{
+ "DcpPublisher": {
+ "KubernetesApiTimeout": "00:00:40",
+ "KubernetesInitializationAdditionalTimeout": "00:00:20",
+ "KubernetesCreateRecoveryTimeout": "00:02:00"
+ }
+}
+```
+
+| Option | Default value | Description |
+| ------ | -------------- | ------------ |
+| `DcpPublisher:KubernetesApiTimeout` | `00:00:40` (40 seconds) | The base budget for a single API operation, such as connecting to DCP or submitting a request. Valid values range from one second to ten minutes. |
+| `DcpPublisher:KubernetesInitializationAdditionalTimeout` | `00:00:20` (20 seconds) | Additional time added on top of `KubernetesApiTimeout` for API operations that happen before the first one succeeds, to account for one-time client setup. The value can be zero. The combined budget (`KubernetesApiTimeout` plus `KubernetesInitializationAdditionalTimeout`) must not exceed ten minutes. |
+| `DcpPublisher:KubernetesCreateRecoveryTimeout` | `00:02:00` (2 minutes) | The total budget for creating a DCP resource, covering client setup, the create request, confirmation checks, and retry delays. If a create request times out or returns an HTTP 504, the AppHost uses this budget to check whether DCP actually committed the object before retrying, rather than immediately failing the resource. Valid values range from one second to ten minutes. |
+
+