Skip to content

Commit 11ce084

Browse files
authored
Merge pull request #40365 from jeana-redhat/OSDOCS-2917
OSDOCS-2917: Azure Ephemeral OS disk support
2 parents acc2e89 + 838f40d commit 11ce084

File tree

3 files changed

+84
-0
lines changed

3 files changed

+84
-0
lines changed

machine_management/creating_machinesets/creating-machineset-azure.adoc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,29 @@ toc::[]
77

88
You can create a different machine set to serve a specific purpose in your {product-title} cluster on Microsoft Azure. For example, you might create infrastructure machine sets and related machines so that you can move supporting workloads to the new machines.
99

10+
//[IMPORTANT] admonition for UPI
1011
include::modules/machine-user-provisioned-limitations.adoc[leveloffset=+1]
1112

13+
//Machine API overview
1214
include::modules/machine-api-overview.adoc[leveloffset=+1]
1315

16+
//Sample YAML for a machine set custom resource on Azure
1417
include::modules/machineset-yaml-azure.adoc[leveloffset=+1]
1518

19+
//Creating a machine set
1620
include::modules/machineset-creating.adoc[leveloffset=+1]
1721

22+
//Machine sets that deploy machines as Spot VMs
1823
include::modules/machineset-non-guaranteed-instance.adoc[leveloffset=+1]
1924

25+
//Creating Spot VMs by using machine sets
2026
include::modules/machineset-creating-non-guaranteed-instances.adoc[leveloffset=+1]
2127

28+
//Machine sets that deploy machines on Ephemeral OS disks
29+
include::modules/machineset-azure-ephemeral-os.adoc[leveloffset=+1]
30+
31+
//Creating machines on Ephemeral OS disks by using machine sets
32+
include::modules/machineset-creating-azure-ephemeral-os.adoc[leveloffset=+1]
33+
34+
//Enabling customer-managed encryption keys for a machine set
2235
include::modules/machineset-customer-managed-encryption-azure.adoc[leveloffset=+1]
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * machine_management/creating_machinesets/creating-machineset-azure.adoc
4+
5+
[id="machineset-azure-ephemeral-os_{context}"]
6+
= Machine sets that deploy machines on Ephemeral OS disks
7+
8+
You can create a machine set running on Azure that deploys machines on Ephemeral OS disks. Ephemeral OS disks use local VM capacity rather than remote Azure Storage. This configuration therefore incurs no additional cost and provides lower latency for reading, writing, and reimaging.
9+
10+
.Additional resources
11+
12+
* For more information, see the Microsoft Azure documentation about link:https://docs.microsoft.com/en-us/azure/virtual-machines/ephemeral-os-disks[Ephemeral OS disks for Azure VMs].
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * machine_management/creating_machinesets/creating-machineset-azure.adoc
4+
5+
[id="machineset-creating-azure-ephemeral-os_{context}"]
6+
= Creating machines on Ephemeral OS disks by using machine sets
7+
8+
You can launch machines on Ephemeral OS disks on Azure by editing your machine set YAML file.
9+
10+
.Prerequisites
11+
12+
* Have an existing Microsoft Azure cluster.
13+
14+
.Procedure
15+
16+
. Edit the custom resource (CR) by running the following command:
17+
+
18+
[source,terminal]
19+
----
20+
$ oc edit machineset <machine-set-name>
21+
----
22+
+
23+
where `<machine-set-name>` is the machine set that you want to provision machines on Ephemeral OS disks.
24+
25+
. Add the following to the `providerSpec` field:
26+
+
27+
[source,yaml]
28+
----
29+
providerSpec:
30+
value:
31+
...
32+
osDisk:
33+
...
34+
diskSettings: <1>
35+
ephemeralStorageLocation: Local <1>
36+
cachingType: ReadOnly <1>
37+
managedDisk:
38+
storageAccountType: Standard_LRS <2>
39+
...
40+
----
41+
+
42+
<1> These lines enable the use of Ephemeral OS disks.
43+
<2> Ephemeral OS disks are only supported for VMs or scale set instances that use the Standard LRS storage account type.
44+
+
45+
[IMPORTANT]
46+
====
47+
The implementation of Ephemeral OS disk support in {product-title} only supports the `CacheDisk` placement type. Do not change the `placement` configuration setting.
48+
====
49+
50+
. Create a machine set using the updated configuration:
51+
+
52+
[source,terminal]
53+
----
54+
$ oc create -f <machine-set-config>.yaml
55+
----
56+
57+
.Verification
58+
59+
* On the Microsoft Azure portal, review the *Overview* page for a machine deployed by the machine set, and verify that the `Ephemeral OS disk` field is set to `OS cache placement`.

0 commit comments

Comments
 (0)