Skip to content

Commit

Permalink
Azure: Disable public IP on bootstrap and add outbound LB
Browse files Browse the repository at this point in the history
  • Loading branch information
jhixson74 committed Apr 25, 2024
1 parent 67ccfeb commit 7e7aace
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/asset/machines/azure/azuremachines.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func GenerateMachines(platform *azure.Platform, pool *types.MachinePool, userDat
FailureDomain: ptr.To(mpool.Zones[0]),
OSDisk: osDisk,
AdditionalTags: tags,
AllocatePublicIP: true,
AllocatePublicIP: false,
AdditionalCapabilities: additionalCapabilities,
SecurityProfile: securityProfile,
},
Expand Down
4 changes: 4 additions & 0 deletions pkg/asset/manifests/azure/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package azure
import (
"fmt"

"github.com/Azure/azure-sdk-for-go/sdk/azcore/to"
"github.com/pkg/errors"
corev1 "k8s.io/api/core/v1"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
Expand Down Expand Up @@ -77,6 +78,9 @@ func GenerateClusterAssets(installConfig *installconfig.InstallConfig, clusterID
Type: capz.Internal,
},
},
ControlPlaneOutboundLB: &capz.LoadBalancerSpec{
FrontendIPsCount: to.Ptr(int32(1)),
},
Subnets: capz.Subnets{
{
SubnetClassSpec: capz.SubnetClassSpec{
Expand Down

0 comments on commit 7e7aace

Please sign in to comment.