Skip to content

Commit d8dfb15

Browse files
authored
Merge pull request #56348 from jeana-redhat/OSDOCS-5090-GCP-confidential-compute
[OSDOCS-5090]: GCP Confidential VM options
2 parents 0644061 + cc7faa4 commit d8dfb15

File tree

2 files changed

+60
-0
lines changed

2 files changed

+60
-0
lines changed

machine_management/creating_machinesets/creating-machineset-gcp.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ include::modules/machineset-creating.adoc[leveloffset=+1]
2323
//Configuring persistent disk types by using compute machine sets
2424
include::modules/machineset-gcp-pd-disk-types.adoc[leveloffset=+1]
2525

26+
//Configuring Shielded VM options by using machine sets [PR#56252]
27+
28+
//Configuring Confidential Computing by using machine sets
29+
include::modules/machineset-gcp-confidential-vm.adoc[leveloffset=+1]
30+
2631
//Machine sets that deploy machines as preemptible VM instances
2732
include::modules/machineset-non-guaranteed-instance.adoc[leveloffset=+1]
2833

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
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

Comments
 (0)