Skip to content

Commit c5692c1

Browse files
committed
[OSDOCS-5093]: GCP Shielded VM options
1 parent 14d53cb commit c5692c1

File tree

3 files changed

+67
-2
lines changed

3 files changed

+67
-2
lines changed

machine_management/creating_machinesets/creating-machineset-gcp.adoc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,15 @@ include::modules/machineset-non-guaranteed-instance.adoc[leveloffset=+1]
2929
//Creating preemptible VM instances by using compute machine sets
3030
include::modules/machineset-creating-non-guaranteed-instances.adoc[leveloffset=+2]
3131

32+
//Configuring Shielded VM options by using machine sets
33+
include::modules/machineset-gcp-shielded-vms.adoc[leveloffset=+1]
34+
[role="_additional-resources"]
35+
.Additional resources
36+
* link:https://cloud.google.com/compute/shielded-vm/docs/shielded-vm[What is Shielded VM?]
37+
** link:https://cloud.google.com/compute/shielded-vm/docs/shielded-vm#secure-boot[Secure Boot]
38+
** link:https://cloud.google.com/compute/shielded-vm/docs/shielded-vm#vtpm[Virtual Trusted Platform Module (vTPM)]
39+
** link:https://cloud.google.com/compute/shielded-vm/docs/shielded-vm#integrity-monitoring[Integrity monitoring]
40+
3241
//Enabling customer-managed encryption keys for a compute machine set
3342
include::modules/machineset-enabling-customer-managed-encryption.adoc[leveloffset=+1]
3443
//TODO break out procedure as a L2

modules/machineset-gcp-pd-disk-types.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="machineset-gcp-pd-disk-types_{context}"]
77
= Configuring persistent disk types by using compute machine sets
88

9-
You can configure the type of persistent disk that a compute machine set deploys machines on by editing the compute machine set YAML file.
9+
You can configure the type of persistent disk that a compute machine set deploys machines on by editing the compute machine set YAML file.
1010

1111
For more information about persistent disk types, compatibility, regional availability, and limitations, see the GCP Compute Engine documentation about link:https://cloud.google.com/compute/docs/disks#pdspecs[persistent disks].
1212

@@ -27,4 +27,4 @@ providerSpec:
2727

2828
.Verification
2929

30-
* On the Google Cloud console, review the details for a machine deployed by the compute machine set and verify that the `Type` field matches the configured disk type.
30+
* Using the Google Cloud console, review the details for a machine deployed by the compute machine set and verify that the `Type` field matches the configured disk type.
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * machine_management/creating_machinesets/creating-machineset-gcp.adoc
4+
5+
ifeval::["{context}" == "cpmso-using"]
6+
:cpmso:
7+
endif::[]
8+
9+
:_content-type: PROCEDURE
10+
[id="machineset-gcp-shielded-vms_{context}"]
11+
= Configuring Shielded VM options by using machine sets
12+
13+
By editing the machine set YAML file, you can configure the Shielded VM options that a machine set uses for machines that it deploys.
14+
15+
For more information about Shielded VM features and functionality, see the GCP Compute Engine documentation about link:https://cloud.google.com/compute/shielded-vm/docs/shielded-vm[Shielded VM].
16+
17+
.Procedure
18+
19+
. In a text editor, open the YAML file for an existing machine set or create a new one.
20+
21+
. Edit the following section under the `providerSpec` field:
22+
+
23+
[source,yaml]
24+
----
25+
ifndef::cpmso[]
26+
apiVersion: machine.openshift.io/v1beta1
27+
kind: MachineSet
28+
endif::cpmso[]
29+
ifdef::cpmso[]
30+
apiVersion: machine.openshift.io/v1
31+
kind: ControlPlaneMachineSet
32+
endif::cpmso[]
33+
...
34+
spec:
35+
template:
36+
spec:
37+
providerSpec:
38+
value:
39+
shieldedInstanceConfig: <1>
40+
integrityMonitoring: Enabled <2>
41+
secureBoot: Disabled <3>
42+
virtualizedTrustedPlatformModule: Enabled <4>
43+
...
44+
----
45+
<1> In this section, specify any Shielded VM options that you want.
46+
<2> Specify whether UEFI Secure Boot is enabled. Valid values are `Disabled` or `Enabled`.
47+
<3> Specify whether integrity monitoring is enabled. Valid values are `Disabled` or `Enabled`.
48+
<4> Specify whether virtual trusted platform module (vTPM) is enabled. Valid values are `Disabled` or `Enabled`.
49+
50+
.Verification
51+
52+
* Using the Google Cloud console, review the details for a machine deployed by the machine set and verify that the Shielded VM options match the values that you configured.
53+
54+
ifeval::["{context}" == "cpmso-using"]
55+
:!cpmso:
56+
endif::[]

0 commit comments

Comments
 (0)