Skip to content
This repository was archived by the owner on Oct 24, 2023. It is now read-only.

Commit 4db0dd8

Browse files
committed
test configs, and rationalize ephemeral
1 parent 32806fa commit 4db0dd8

File tree

6 files changed

+13
-4
lines changed

6 files changed

+13
-4
lines changed

pkg/api/defaults.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -841,6 +841,9 @@ func (p *Properties) setAgentProfileDefaults(isUpgrade, isScale bool) {
841841
if profile.OSDiskCachingType == "" {
842842
profile.OSDiskCachingType = string(compute.CachingTypesReadOnly)
843843
}
844+
if profile.OSDiskType == "" {
845+
profile.OSDiskType = StandardHDD
846+
}
844847
}
845848

846849
if profile.OSDiskCachingType == "" {

pkg/api/vlabs/const.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,3 +198,6 @@ const (
198198
// AddonModeReconcile
199199
AddonModeReconcile = "Reconcile"
200200
)
201+
202+
// ScaleSetPrioritySpot means the ScaleSet will use Spot VMs
203+
const ScaleSetPrioritySpot = "Spot"

pkg/api/vlabs/validate.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,8 @@ func (a *Properties) validateAgentPoolProfiles(isUpdate bool) error {
618618
return e
619619
}
620620

621-
if agentPoolProfile.IsEphemeral() {
622-
log.Warnf("Ephemeral disks are enabled for Agent Pool %s. This feature in AKS-Engine is experimental, and data could be lost in some cases.", agentPoolProfile.Name)
621+
if agentPoolProfile.IsEphemeral() && agentPoolProfile.ScaleSetPriority != ScaleSetPrioritySpot {
622+
log.Warnf("Ephemeral OS disk is enabled for Agent Pool %s. This is an appropriate configuration for ephemeral nodes; data may be lost in some cases.", agentPoolProfile.Name)
623623
}
624624

625625
if e := validateProximityPlacementGroupID(agentPoolProfile.ProximityPlacementGroupID); e != nil {

pkg/engine/virtualmachinescalesets.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,7 @@ func CreateAgentVMSS(cs *api.ContainerService, profile *api.AgentPoolProfile) Vi
714714
osDisk.DiffDiskSettings = &compute.DiffDiskSettings{
715715
Option: compute.Local,
716716
}
717+
osDisk.ManagedDisk.StorageAccountType = compute.StorageAccountTypesStandardLRS
717718
} else {
718719
switch profile.OSDiskType {
719720
case api.UltraSSD:

test/e2e/cluster.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ TMP_DIR=$(mktemp -d "$(pwd)/XXXXXXXXXXXX")
66
TMP_BASENAME=$(basename ${TMP_DIR})
77
GOPATH="/go"
88
WORK_DIR="/aks-engine"
9-
MASTER_VM_UPGRADE_SKU="${MASTER_VM_UPGRADE_SKU:-Standard_D4_v3}"
9+
MASTER_VM_UPGRADE_SKU="${MASTER_VM_UPGRADE_SKU:-Standard_D4s_v3}"
1010
NODE_VM_UPGRADE_SKU="${NODE_VM_UPGRADE_SKU:-Standard_D4_v3}"
1111
AZURE_ENV="${AZURE_ENV:-AzurePublicCloud}"
1212
IDENTITY_SYSTEM="${IDENTITY_SYSTEM:-azure_ad}"

test/e2e/test_cluster_configs/base.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
"SKIP_TESTS_AFTER_SCALE_DOWN": "true",
1111
"SKIP_TESTS_AFTER_UPGRADE": "true",
1212
"SKIP_TESTS_AFTER_SCALE_UP": "false",
13-
"STABILITY_ITERATIONS": "0"
13+
"STABILITY_ITERATIONS": "0",
14+
"MASTER_VM_UPGRADE_SKU": "Standard_D4s_v3",
15+
"NODE_VM_UPGRADE_SKU": "Standard_D4_v3"
1416
},
1517
"apiModel": {
1618
"apiVersion": "vlabs",

0 commit comments

Comments
 (0)