Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions pkg/acsengine/defaults.go
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,9 @@ func setOrchestratorDefaults(cs *api.ContainerService) {

if a.OrchestratorProfile.KubernetesConfig.EnableRbac == nil {
a.OrchestratorProfile.KubernetesConfig.EnableRbac = pointerToBool(api.DefaultRBACEnabled)



}

if a.OrchestratorProfile.KubernetesConfig.EnableSecureKubelet == nil {
Expand Down Expand Up @@ -574,13 +577,6 @@ func setMasterNetworkDefaults(a *api.Properties, isUpgrade bool) {
if a.MasterProfile.IPAddressCount == 0 {
// Allocate one IP address for the node.
a.MasterProfile.IPAddressCount = 1

// Allocate IP addresses for pods if VNET integration is enabled.
if a.OrchestratorProfile.IsAzureCNI() {
if a.OrchestratorProfile.OrchestratorType == api.Kubernetes {
a.MasterProfile.IPAddressCount += a.OrchestratorProfile.KubernetesConfig.MaxPods
}
}
}

if a.MasterProfile.HTTPSourceAddressPrefix == "" {
Expand Down Expand Up @@ -618,13 +614,6 @@ func setAgentNetworkDefaults(a *api.Properties) {
if profile.IPAddressCount == 0 {
// Allocate one IP address for the node.
profile.IPAddressCount = 1

// Allocate IP addresses for pods if VNET integration is enabled.
if a.OrchestratorProfile.IsAzureCNI() {
if a.OrchestratorProfile.OrchestratorType == api.Kubernetes {
profile.IPAddressCount += a.OrchestratorProfile.KubernetesConfig.MaxPods
}
}
}
}
}
Expand Down