diff --git a/install/overlays/azure/kustomization.yaml b/install/overlays/azure/kustomization.yaml index 2a3552fb1..3186531ac 100644 --- a/install/overlays/azure/kustomization.yaml +++ b/install/overlays/azure/kustomization.yaml @@ -20,7 +20,7 @@ configMapGenerator: - CLOUD_CONFIG_VERIFY="false" # It's better set as true to enable could config verify in production env - AZURE_SUBSCRIPTION_ID="" #set - AZURE_REGION="eastus" #set - - AZURE_INSTANCE_SIZE="Standard_D8as_v5" #set + - AZURE_INSTANCE_SIZE="Standard_DC2as_v5" #set - AZURE_RESOURCE_GROUP="" #set # /subscriptions//resourceGroups//providers/Microsoft.Network/virtualNetworks//subnets/ diff --git a/pkg/adaptor/cloud/azure/manager.go b/pkg/adaptor/cloud/azure/manager.go index 3eac9cc2a..550b39a43 100644 --- a/pkg/adaptor/cloud/azure/manager.go +++ b/pkg/adaptor/cloud/azure/manager.go @@ -22,7 +22,7 @@ func (_ *Manager) ParseCmd(flags *flag.FlagSet) { flags.StringVar(&azurecfg.Region, "region", "", "Region") flags.StringVar(&azurecfg.SubnetId, "subnetid", "", "Network Subnet Id") flags.StringVar(&azurecfg.SecurityGroupId, "securitygroupid", "", "Security Group Id") - flags.StringVar(&azurecfg.Size, "instance-size", "", "Instance size") + flags.StringVar(&azurecfg.Size, "instance-size", "Standard_DC2as_v5", "Instance size") flags.StringVar(&azurecfg.ImageId, "imageid", "", "Image Id") flags.StringVar(&azurecfg.SubscriptionId, "subscriptionid", "", "Subscription ID") flags.StringVar(&azurecfg.SSHKeyPath, "ssh-key-path", "$HOME/.ssh/id_rsa.pub", "Path to SSH public key") @@ -44,6 +44,7 @@ func (_ *Manager) LoadEnv() { cloud.DefaultToEnv(&azurecfg.SubscriptionId, "AZURE_SUBSCRIPTION_ID", "") cloud.DefaultToEnv(&azurecfg.Region, "AZURE_REGION", "") cloud.DefaultToEnv(&azurecfg.ResourceGroupName, "AZURE_RESOURCE_GROUP", "") + cloud.DefaultToEnv(&azurecfg.Size, "AZURE_INSTANCE_SIZE", "Standard_DC2as_v5") } func (_ *Manager) NewProvider() (cloud.Provider, error) {