Skip to content

Commit

Permalink
Merge pull request #164 from cloudpilot-ai/cherry-pick-151-release-0.1
Browse files Browse the repository at this point in the history
Cherry pick PR(151)/chore: add tag to apg to enhance the SLA
  • Loading branch information
jwcesign authored Dec 13, 2024
2 parents 3e02f3e + 8f10020 commit 758d15e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/providers/instance/instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import (
"sigs.k8s.io/karpenter/pkg/scheduling"
"sigs.k8s.io/karpenter/pkg/utils/resources"

"github.com/cloudpilot-ai/karpenter-provider-alibabacloud/pkg/apis"
"github.com/cloudpilot-ai/karpenter-provider-alibabacloud/pkg/apis/v1alpha1"
"github.com/cloudpilot-ai/karpenter-provider-alibabacloud/pkg/operator/options"
"github.com/cloudpilot-ai/karpenter-provider-alibabacloud/pkg/providers/ack"
Expand Down Expand Up @@ -541,6 +542,10 @@ func (p *DefaultProvider) getProvisioningGroup(ctx context.Context, nodeClass *v
SystemDiskPerformanceLevel: systemDisk.PerformanceLevel,
Tag: reqTags,
},
// Add this tag to auto-provisioning-group, alibabacloud will monitor the requests and enhance the stability
Tag: []*ecsclient.CreateAutoProvisioningGroupRequestTag{
{Key: tea.String(apis.Group + "/autoprovisiongroup"), Value: tea.String("true")},
},

SystemDiskConfig: lo.Map(systemDisk.Categories, func(category string, _ int) *ecsclient.CreateAutoProvisioningGroupRequestSystemDiskConfig {
return &ecsclient.CreateAutoProvisioningGroupRequestSystemDiskConfig{
Expand Down

0 comments on commit 758d15e

Please sign in to comment.