Puoi modificare il comportamento della VM del workload Confidential Space passando variabili all'opzione --metadata quando crei la VM.
Per passare più variabili, imposta prima il delimitatore anteponendo il valore --metadata a ^~^. Il delimitatore viene impostato su ~, poiché , viene utilizzato nei valori delle variabili.
Imposta le variabili di ambiente nel contenitore del carico di lavoro. L'autore del workload deve anche aggiungere i nomi delle variabili di ambiente al criterio di lancio allow_env_override, altrimenti non verranno impostati.
Il valore predefinito è false. Se impostato su true, attiva il monitoraggio dell'utilizzo della memoria. Le metriche raccolte dalla VM con accesso riservato sono di tipo guest/memory/bytes_used e possono essere visualizzate in Cloud Logging o Metrics Explorer.
Un elenco di definizioni di montaggio separate da punto e virgola. Una definizione di montaggio è costituita da un elenco di coppie chiave/valore separate da virgola, che richiedono type, source e destination. destination deve essere un
percorso assoluto e type/source deve essere
tmpfs.
[[["Facile da capire","easyToUnderstand","thumb-up"],["Il problema è stato risolto","solvedMyProblem","thumb-up"],["Altra","otherUp","thumb-up"]],[["Difficile da capire","hardToUnderstand","thumb-down"],["Informazioni o codice di esempio errati","incorrectInformationOrSampleCode","thumb-down"],["Mancano le informazioni o gli esempi di cui ho bisogno","missingTheInformationSamplesINeed","thumb-down"],["Problema di traduzione","translationIssue","thumb-down"],["Altra","otherDown","thumb-down"]],["Ultimo aggiornamento 2025-03-06 UTC."],[[["You can modify the behavior of a Confidential Space workload VM by using the `--metadata` option and passing in specific variables during VM creation."],["The `tee-image-reference` metadata key is required and it specifies the location of the workload container image."],["The `tee-cmd` metadata key allows overriding the `CMD` instructions defined in the workload container's Dockerfile, while other variables allow environment variables, service accounts impersonation, memory monitoring and mount definitions to be modified."],["The `tee-container-log-redirect` key controls the destination of the workload container's `STDOUT` and `STDERR` output, allowing it to be directed to the serial console, Cloud Logging, or both."],["You can define the restart policy for the workload container using `tee-restart-policy`, with options such as `Never`, `Always`, or `OnFailure`, which dictates the container's behavior when it stops."]]],[]]