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

Commit d04f379

Browse files
authored
AKS uses VHD + outbound inet test (#3826)
1 parent 6e93a4a commit d04f379

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

parts/k8s/kubernetescustomscript.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,12 +41,13 @@ function holdWALinuxAgent() {
4141
fi
4242
}
4343

44+
testOutboundConnection
45+
4446
if [[ ! -z "${MASTER_NODE}" ]]; then
4547
installEtcd
4648
fi
4749

4850
if $FULL_INSTALL_REQUIRED; then
49-
testOutboundConnection
5051
holdWALinuxAgent
5152
installDeps
5253
else

pkg/acsengine/defaults.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ func setAgentProfileDefaults(a *api.Properties, isUpgrade, isScale bool) {
618618
// don't default Distro for OpenShift
619619
if !a.OrchestratorProfile.IsOpenShift() {
620620
if profile.Distro == "" {
621-
if a.HostedMasterProfile != nil {
621+
if profile.OSDiskSizeGB != 0 && profile.OSDiskSizeGB < api.VHDDiskSizeAKS {
622622
profile.Distro = api.Ubuntu
623623
} else {
624624
profile.Distro = api.AKS

pkg/api/const.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,3 +172,8 @@ const (
172172
// AgentPoolProfileRoleMaster is the master role
173173
AgentPoolProfileRoleMaster AgentPoolProfileRole = "master"
174174
)
175+
176+
const (
177+
// VHDDiskSizeAKS maps to the OSDiskSizeGB for AKS VHD image
178+
VHDDiskSizeAKS = 100
179+
)

0 commit comments

Comments
 (0)