Skip to content

Commit 758d15e

Browse files
author
Wei
authored
Merge pull request #164 from cloudpilot-ai/cherry-pick-151-release-0.1
Cherry pick PR(151)/chore: add tag to apg to enhance the SLA
2 parents 3e02f3e + 8f10020 commit 758d15e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/providers/instance/instance.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ import (
4141
"sigs.k8s.io/karpenter/pkg/scheduling"
4242
"sigs.k8s.io/karpenter/pkg/utils/resources"
4343

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

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

0 commit comments

Comments
 (0)