|
| 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