Skip to content

Commit 46b9458

Browse files
authored
Update the README about ScalableTarget and ScalingPolicy Resource Updates (#37)
Issue #, if available: Missed README update Description of changes: Update the README about - ScalableTarget and ScalingPolicy Resource Updates By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
1 parent 431d45c commit 46b9458

File tree

1 file changed

+7
-1
lines changed
  • samples/hosting-autoscaling-on-sagemaker

1 file changed

+7
-1
lines changed

samples/hosting-autoscaling-on-sagemaker/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,13 @@ scalabletarget.applicationautoscaling.services.k8s.aws "ack-scalable-target-pred
8989
scalingpolicy.applicationautoscaling.services.k8s.aws "ack-scaling-policy-predefined" deleted
9090
```
9191

92-
8. UPDATES: If you want to update the policy applied to your endpoint, you will have to follow a step by step process to first delete the existing policy, update the spec file and then re-apply the scaling policy.
92+
8. UPDATES: You are now able to update the ScalableTarget and ScalingPolicy parameters once the resource has been created. In order to do this just edit the original spec file and resubmit using -
93+
94+
```
95+
kubectl apply -f hosting-autoscaling-predefined.yaml
96+
```
97+
Note -
98+
The ScalableTarget resource's Update feature requires an additional inline policy attached to the OIDC IAM Role. Follow the steps in the [Getting Started README](https://github.com/aws-controllers-k8s/sagemaker-controller/blob/main/README.md).
9399

94100
9. Other Spec Fields:
95101
You can refer to the second sample provided here `hosting-autoscaling-custom-metric.yaml` to check out an example of using a `customMetric` in the scaling policy or fields like `suspendedState` in the scalable Target.

0 commit comments

Comments
 (0)