-
Notifications
You must be signed in to change notification settings - Fork 258
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sagemaker endpoint: enhance integ test coverage for failure conditions
- Loading branch information
Showing
14 changed files
with
621 additions
and
318 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
test/e2e/sagemaker/resources/endpoint_config_multi_variant.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
apiVersion: sagemaker.services.k8s.aws/v1alpha1 | ||
kind: EndpointConfig | ||
metadata: | ||
name: $CONFIG_NAME | ||
spec: | ||
endpointConfigName: $CONFIG_NAME | ||
productionVariants: | ||
- variantName: variant-1 | ||
modelName: $MODEL_NAME | ||
initialInstanceCount: 1 | ||
# This is the smallest instance type which will support scaling | ||
instanceType: ml.c5.large | ||
initialVariantWeight: 1 | ||
- variantName: variant-2 | ||
modelName: $MODEL_NAME | ||
initialInstanceCount: 1 | ||
instanceType: ml.c5.large | ||
initialVariantWeight: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
test/e2e/sagemaker/resources/xgboost_model_with_model_location.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
apiVersion: sagemaker.services.k8s.aws/v1alpha1 | ||
kind: Model | ||
metadata: | ||
name: $MODEL_NAME | ||
spec: | ||
modelName: $MODEL_NAME | ||
containers: | ||
- containerHostname: xgboost | ||
modelDataURL: $MODEL_LOCATION | ||
image: $XGBOOST_IMAGE_URI | ||
imageConfig: | ||
repositoryAccessMode: Platform | ||
environment: | ||
my_var: my_value | ||
my_var2: my_value2 | ||
executionRoleARN: $SAGEMAKER_EXECUTION_ROLE_ARN |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.