|
| 1 | +// Module included in the following assemblies: |
| 2 | +// |
| 3 | +// * machine_management/creating_machinesets/creating-machineset-gcp.adoc |
| 4 | +// * machine_management/control_plane_machine_management/cpmso-using.adoc |
| 5 | + |
| 6 | +ifeval::["{context}" == "cpmso-using"] |
| 7 | +:cpmso: |
| 8 | +endif::[] |
| 9 | + |
| 10 | +:_content-type: PROCEDURE |
| 11 | +[id="machineset-gcp-confidential-vm_{context}"] |
| 12 | += Configuring Confidential VM by using machine sets |
| 13 | + |
| 14 | +By editing the machine set YAML file, you can configure the Confidential VM options that a machine set uses for machines that it deploys. |
| 15 | + |
| 16 | +For more information about Confidential Compute features, functionality, and compatibility, see the GCP Compute Engine documentation about link:https://cloud.google.com/compute/confidential-vm/docs/about-cvm[Confidential VM]. |
| 17 | + |
| 18 | +.Procedure |
| 19 | + |
| 20 | +. In a text editor, open the YAML file for an existing machine set or create a new one. |
| 21 | + |
| 22 | +. Edit the following section under the `providerSpec` field: |
| 23 | ++ |
| 24 | +[source,yaml] |
| 25 | +---- |
| 26 | +ifndef::cpmso[] |
| 27 | +apiVersion: machine.openshift.io/v1beta1 |
| 28 | +kind: MachineSet |
| 29 | +endif::cpmso[] |
| 30 | +ifdef::cpmso[] |
| 31 | +apiVersion: machine.openshift.io/v1 |
| 32 | +kind: ControlPlaneMachineSet |
| 33 | +endif::cpmso[] |
| 34 | +... |
| 35 | +spec: |
| 36 | + template: |
| 37 | + spec: |
| 38 | + providerSpec: |
| 39 | + value: |
| 40 | + confidentialCompute: Enabled <1> |
| 41 | + onHostMaintenance: Terminate <2> |
| 42 | + machineType: n2d-standard-8 <3> |
| 43 | +... |
| 44 | +---- |
| 45 | +<1> Specify whether Confidential VM is enabled. Valid values are `Disabled` or `Enabled`. |
| 46 | +<2> Specify the behavior of the VM during a host maintenance event, such as a hardware or software update. For a machine that uses Confidential VM, this value must be set to `Terminate`, which stops the VM. Confidential VM does not support live VM migration. |
| 47 | +<3> Specify a machine type that supports Confidential VM. Confidential VM supports the N2D and C2D series of machine types. |
| 48 | + |
| 49 | +.Verification |
| 50 | + |
| 51 | +* On the Google Cloud console, review the details for a machine deployed by the machine set and verify that the Confidential VM options match the values that you configured. |
| 52 | +
|
| 53 | +ifeval::["{context}" == "cpmso-using"] |
| 54 | +:!cpmso: |
| 55 | +endif::[] |
0 commit comments