|
1 | | ---- |
2 | 1 | apiVersion: apiextensions.k8s.io/v1 |
3 | 2 | kind: CustomResourceDefinition |
4 | 3 | metadata: |
5 | 4 | annotations: |
| 5 | + cert-manager.io/inject-ca-from: '{{ .Values.shortPrefix }}-system/serving-cert' |
6 | 6 | controller-gen.kubebuilder.io/version: v0.16.4 |
7 | 7 | name: sagemakerendpointregistrations.inference.sagemaker.aws.amazon.com |
8 | 8 | spec: |
| 9 | + conversion: |
| 10 | + strategy: Webhook |
| 11 | + webhook: |
| 12 | + clientConfig: |
| 13 | + service: |
| 14 | + name: '{{ .Values.namePrefix }}-conversion-webhook' |
| 15 | + namespace: '{{ .Values.shortPrefix }}-system' |
| 16 | + path: /convert |
| 17 | + conversionReviewVersions: |
| 18 | + - v1 |
9 | 19 | group: inference.sagemaker.aws.amazon.com |
10 | 20 | names: |
11 | 21 | kind: SageMakerEndpointRegistration |
|
14 | 24 | singular: sagemakerendpointregistration |
15 | 25 | scope: Namespaced |
16 | 26 | versions: |
17 | | - - name: v1alpha1 |
| 27 | + - name: v1 |
18 | 28 | schema: |
19 | 29 | openAPIV3Schema: |
20 | 30 | description: SageMakerEndpointRegistration is the Schema for the sagemakerendpointregistrations |
|
88 | 98 | description: InstanceType is the ML compute instance type used for |
89 | 99 | EndpointConfig creation |
90 | 100 | type: string |
| 101 | + invocationEndpoint: |
| 102 | + default: invocations |
| 103 | + description: The invocation endpoint path used by the model server |
| 104 | + type: string |
91 | 105 | loadBalancerHostName: |
92 | 106 | description: Needed to embed the LB Host Name |
93 | 107 | type: string |
@@ -248,3 +262,241 @@ spec: |
248 | 262 | storage: true |
249 | 263 | subresources: |
250 | 264 | status: {} |
| 265 | + - name: v1alpha1 |
| 266 | + schema: |
| 267 | + openAPIV3Schema: |
| 268 | + description: SageMakerEndpointRegistration is the Schema for the sagemakerendpointregistrations |
| 269 | + API |
| 270 | + properties: |
| 271 | + apiVersion: |
| 272 | + description: |- |
| 273 | + APIVersion defines the versioned schema of this representation of an object. |
| 274 | + Servers should convert recognized schemas to the latest internal value, and |
| 275 | + may reject unrecognized values. |
| 276 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources |
| 277 | + type: string |
| 278 | + kind: |
| 279 | + description: |- |
| 280 | + Kind is a string value representing the REST resource this object represents. |
| 281 | + Servers may infer this from the endpoint the client submits requests to. |
| 282 | + Cannot be updated. |
| 283 | + In CamelCase. |
| 284 | + More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds |
| 285 | + type: string |
| 286 | + metadata: |
| 287 | + type: object |
| 288 | + spec: |
| 289 | + description: SageMakerEndpointRegistrationSpec defines the desired state |
| 290 | + of SageMakerEndpointRegistration |
| 291 | + properties: |
| 292 | + eksClusterDetails: |
| 293 | + properties: |
| 294 | + arn: |
| 295 | + description: Stores cluster ARN |
| 296 | + type: string |
| 297 | + clusterSecurityGroupId: |
| 298 | + description: Stores ClusterSecurityGroup of the EKS Cluster |
| 299 | + type: string |
| 300 | + name: |
| 301 | + description: Stores cluster name |
| 302 | + type: string |
| 303 | + securityGroupIds: |
| 304 | + description: Stores AdditionalSecurityGroupIds of the EKS Cluster |
| 305 | + items: |
| 306 | + type: string |
| 307 | + type: array |
| 308 | + subnetIds: |
| 309 | + description: Stores SubnetIDs of the EKS Cluster |
| 310 | + items: |
| 311 | + type: string |
| 312 | + type: array |
| 313 | + vpcId: |
| 314 | + description: Stores VPC Id of the EKS Cluster |
| 315 | + type: string |
| 316 | + required: |
| 317 | + - arn |
| 318 | + - clusterSecurityGroupId |
| 319 | + - name |
| 320 | + - securityGroupIds |
| 321 | + - subnetIds |
| 322 | + - vpcId |
| 323 | + type: object |
| 324 | + executionRole: |
| 325 | + description: The Amazon Resource Name (ARN) of an IAM role that will |
| 326 | + be used to create model, endpoint config, and the endpoint |
| 327 | + maxLength: 2048 |
| 328 | + minLength: 20 |
| 329 | + pattern: ^arn:aws[a-z\-]*:iam::\d{12}:role/?[a-zA-Z_0-9+=,.@\-_/]+$ |
| 330 | + type: string |
| 331 | + imageUri: |
| 332 | + description: The ImageUri where inference code is stored |
| 333 | + maxLength: 255 |
| 334 | + type: string |
| 335 | + instanceType: |
| 336 | + description: InstanceType is the ML compute instance type used for |
| 337 | + EndpointConfig creation |
| 338 | + type: string |
| 339 | + invocationEndpoint: |
| 340 | + default: invocations |
| 341 | + description: The invocation endpoint path used by the model server |
| 342 | + type: string |
| 343 | + loadBalancerHostName: |
| 344 | + description: Needed to embed the LB Host Name |
| 345 | + type: string |
| 346 | + name: |
| 347 | + description: Name used for AWS resource creation |
| 348 | + maxLength: 63 |
| 349 | + pattern: ^[a-zA-Z0-9](-*[a-zA-Z0-9]){0,62} |
| 350 | + type: string |
| 351 | + restApiId: |
| 352 | + description: REST API Gateway identifier that proxies requests to |
| 353 | + the HyperPod endpoint (via NLB/ALB) |
| 354 | + type: string |
| 355 | + tlsConfig: |
| 356 | + properties: |
| 357 | + tlsCertificateOutputS3Bucket: |
| 358 | + description: S3 bucket that stores the certificate that needs |
| 359 | + to be trusted |
| 360 | + type: string |
| 361 | + tlsCertificateS3Keys: |
| 362 | + description: The output tls certificate S3 key that points to |
| 363 | + the .pem file |
| 364 | + items: |
| 365 | + type: string |
| 366 | + type: array |
| 367 | + tlsServerNameOverride: |
| 368 | + description: The server name override for tls certificate selection |
| 369 | + type: string |
| 370 | + required: |
| 371 | + - tlsCertificateOutputS3Bucket |
| 372 | + - tlsCertificateS3Keys |
| 373 | + type: object |
| 374 | + required: |
| 375 | + - eksClusterDetails |
| 376 | + - executionRole |
| 377 | + - imageUri |
| 378 | + - instanceType |
| 379 | + - loadBalancerHostName |
| 380 | + - name |
| 381 | + - restApiId |
| 382 | + - tlsConfig |
| 383 | + type: object |
| 384 | + status: |
| 385 | + description: SageMakerEndpointRegistrationStatus defines the observed |
| 386 | + state of SageMakerEndpointRegistration |
| 387 | + properties: |
| 388 | + conditions: |
| 389 | + description: Detailed conditions representing the state of the deployment |
| 390 | + items: |
| 391 | + description: Condition contains details for one aspect of the current |
| 392 | + state of this API Resource. |
| 393 | + properties: |
| 394 | + lastTransitionTime: |
| 395 | + description: |- |
| 396 | + lastTransitionTime is the last time the condition transitioned from one status to another. |
| 397 | + This should be when the underlying condition changed. If that is not known, then using the time when the API field changed is acceptable. |
| 398 | + format: date-time |
| 399 | + type: string |
| 400 | + message: |
| 401 | + description: |- |
| 402 | + message is a human readable message indicating details about the transition. |
| 403 | + This may be an empty string. |
| 404 | + maxLength: 32768 |
| 405 | + type: string |
| 406 | + observedGeneration: |
| 407 | + description: |- |
| 408 | + observedGeneration represents the .metadata.generation that the condition was set based upon. |
| 409 | + For instance, if .metadata.generation is currently 12, but the .status.conditions[x].observedGeneration is 9, the condition is out of date |
| 410 | + with respect to the current state of the instance. |
| 411 | + format: int64 |
| 412 | + minimum: 0 |
| 413 | + type: integer |
| 414 | + reason: |
| 415 | + description: |- |
| 416 | + reason contains a programmatic identifier indicating the reason for the condition's last transition. |
| 417 | + Producers of specific condition types may define expected values and meanings for this field, |
| 418 | + and whether the values are considered a guaranteed API. |
| 419 | + The value should be a CamelCase string. |
| 420 | + This field may not be empty. |
| 421 | + maxLength: 1024 |
| 422 | + minLength: 1 |
| 423 | + pattern: ^[A-Za-z]([A-Za-z0-9_,:]*[A-Za-z0-9_])?$ |
| 424 | + type: string |
| 425 | + status: |
| 426 | + description: status of the condition, one of True, False, Unknown. |
| 427 | + enum: |
| 428 | + - "True" |
| 429 | + - "False" |
| 430 | + - Unknown |
| 431 | + type: string |
| 432 | + type: |
| 433 | + description: type of condition in CamelCase or in foo.example.com/CamelCase. |
| 434 | + maxLength: 316 |
| 435 | + pattern: ^([a-z0-9]([-a-z0-9]*[a-z0-9])?(\.[a-z0-9]([-a-z0-9]*[a-z0-9])?)*/)?(([A-Za-z0-9][-A-Za-z0-9_.]*)?[A-Za-z0-9])$ |
| 436 | + type: string |
| 437 | + required: |
| 438 | + - lastTransitionTime |
| 439 | + - message |
| 440 | + - reason |
| 441 | + - status |
| 442 | + - type |
| 443 | + type: object |
| 444 | + type: array |
| 445 | + endpoint: |
| 446 | + description: Endpoint Metadata |
| 447 | + properties: |
| 448 | + arn: |
| 449 | + description: The Amazon Resource Name (ARN) of the SageMaker endpoint |
| 450 | + pattern: (arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:endpoint/.*|^$) |
| 451 | + type: string |
| 452 | + configArn: |
| 453 | + description: The Amazon Resource Name (ARN) of the endpoint configuration. |
| 454 | + pattern: (arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:endpoint-config/.*|^$) |
| 455 | + type: string |
| 456 | + lastModifiedTime: |
| 457 | + description: The last modified time of SageMaker endpoint. |
| 458 | + format: date-time |
| 459 | + type: string |
| 460 | + modelArn: |
| 461 | + description: The ARN of the model created in SageMaker. |
| 462 | + pattern: (arn:aws[a-z\-]*:sagemaker:[a-z0-9\-]*:[0-9]{12}:model/.*|^$) |
| 463 | + type: string |
| 464 | + required: |
| 465 | + - arn |
| 466 | + - configArn |
| 467 | + - modelArn |
| 468 | + type: object |
| 469 | + loadBalancer: |
| 470 | + description: LoadBalancer Metadata |
| 471 | + properties: |
| 472 | + hostName: |
| 473 | + description: Hostname of LoadBalancer |
| 474 | + type: string |
| 475 | + required: |
| 476 | + - hostName |
| 477 | + type: object |
| 478 | + observedGeneration: |
| 479 | + description: Latest generation reconciled by controller |
| 480 | + format: int64 |
| 481 | + type: integer |
| 482 | + state: |
| 483 | + description: Current phase of the Endpoint creation Step |
| 484 | + enum: |
| 485 | + - CreationInProgress |
| 486 | + - CreationFailed |
| 487 | + - CreationCompleted |
| 488 | + - DeletionInProgress |
| 489 | + - DeletionFailed |
| 490 | + - DeletionCompleted |
| 491 | + - UpdateInProgress |
| 492 | + - UpdateFailed |
| 493 | + - UpdateCompleted |
| 494 | + type: string |
| 495 | + required: |
| 496 | + - state |
| 497 | + type: object |
| 498 | + type: object |
| 499 | + served: true |
| 500 | + storage: false |
| 501 | + subresources: |
| 502 | + status: {} |
0 commit comments