You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This new parameter for kata-agent is used to control the timeout for a
guest pull request. Note that sometimes an image can be really big, so
we set default timeout to 1200 seconds (20 minutes).
Signed-off-by: Xynnn007 <[email protected]>
Copy file name to clipboardExpand all lines: src/agent/README.md
+2-1Lines changed: 2 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -129,6 +129,7 @@ The kata agent has the ability to configure agent options in guest kernel comman
129
129
|`agent.guest_components_procs`| guest-components processes | Attestation-related processes that should be spawned as children of the guest. Valid values are `none`, `attestation-agent`, `confidential-data-hub` (implies `attestation-agent`), `api-server-rest` (implies `attestation-agent` and `confidential-data-hub`) | string |`api-server-rest`|
130
130
|`agent.hotplug_timeout`| Hotplug timeout | Allow to configure hotplug timeout(seconds) of block devices | integer |`3`|
131
131
|`agent.cdh_api_timeout`| Confidential Data Hub (CDH) API timeout | Allow to configure CDH API timeout(seconds) | integer |`50`|
132
+
|`agent.image_pull_timeout`| Confidential Data Hub (CDH) Image Pull API timeout | Allow to configure CDH API image pull timeout(seconds) | integer |`1200`|
132
133
|`agent.https_proxy`| HTTPS proxy | Allow to configure `https_proxy` in the guest | string |`""`|
133
134
|`agent.image_registry_auth`| Image registry credential URI | The URI to where image-rs can find the credentials for pulling images from private registries e.g. `file:///root/.docker/config.json` to read from a file in the guest image, or `kbs:///default/credentials/test` to get the file from the KBS| string |`""`|
134
135
|`agent.enable_signature_verification`| Image security policy flag | Whether enable image security policy enforcement. If `true`, the resource indexed by URI `agent.image_policy_file` will be got to work as image pulling policy. | string |`""`|
@@ -148,7 +149,7 @@ The kata agent has the ability to configure agent options in guest kernel comman
148
149
> The agent will fail to start if the configuration file is not present,
149
150
> or if it can't be parsed properly.
150
151
> -`agent.devmode`: true | false
151
-
> -`agent.hotplug_timeout` and `agent.cdh_api_timeout`: a whole number of seconds
152
+
> -`agent.hotplug_timeout`, `agent.image_pull_timeout` and `agent.cdh_api_timeout`: a whole number of seconds
/// pull_image is used for call confidential data hub to pull image in the guest.
175
175
/// Image layers will store at [`image::KATA_IMAGE_WORK_DIR`]`,
176
176
/// rootfs and config.json will store under given `bundle_path`.
177
-
///
177
+
///
178
178
/// # Parameters
179
179
/// - `image`: Image name (exp: quay.io/prometheus/busybox:latest)
180
180
/// - `bundle_path`: The path to store the image bundle (exp. /run/kata-containers/cb0b47276ea66ee9f44cc53afa94d7980b57a52c3f306f68cb034e58d9fbd3c6/rootfs)
0 commit comments