{"id":19862537,"url":"https://github.com/aws-controllers-k8s/sagemaker-controller","last_synced_at":"2025-04-05T10:09:24.212Z","repository":{"id":37066407,"uuid":"333630838","full_name":"aws-controllers-k8s/sagemaker-controller","owner":"aws-controllers-k8s","description":"ACK service controller for Amazon SageMaker","archived":false,"fork":false,"pushed_at":"2025-03-28T17:59:24.000Z","size":3156,"stargazers_count":43,"open_issues_count":2,"forks_count":36,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-03-29T09:12:00.658Z","etag":null,"topics":["ack","aws","aws-sagemaker","kubernetes","machine-learning","operator","sagemaker"],"latest_commit_sha":null,"homepage":"https://aws-controllers-k8s.github.io/community/docs/tutorials/sagemaker-example/","language":"Python","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aws-controllers-k8s.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":"CODEOWNERS","security":null,"support":null,"governance":"GOVERNANCE.md","roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-28T03:10:28.000Z","updated_at":"2025-03-28T17:58:13.000Z","dependencies_parsed_at":"2024-01-29T09:49:37.132Z","dependency_job_id":"cdfc69ab-d5d1-4ef2-90dc-b8098fefc1a9","html_url":"https://github.com/aws-controllers-k8s/sagemaker-controller","commit_stats":{"total_commits":229,"total_committers":25,"mean_commits":9.16,"dds":0.759825327510917,"last_synced_commit":"68e13e51000a76e30b8dfe27c9c9da57e8a01f6a"},"previous_names":[],"tags_count":38,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-controllers-k8s%2Fsagemaker-controller","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-controllers-k8s%2Fsagemaker-controller/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-controllers-k8s%2Fsagemaker-controller/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aws-controllers-k8s%2Fsagemaker-controller/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aws-controllers-k8s","download_url":"https://codeload.github.com/aws-controllers-k8s/sagemaker-controller/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247318745,"owners_count":20919484,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ack","aws","aws-sagemaker","kubernetes","machine-learning","operator","sagemaker"],"created_at":"2024-11-12T15:12:05.348Z","updated_at":"2025-04-05T10:09:24.190Z","avatar_url":"https://github.com/aws-controllers-k8s.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ACK service controller for Amazon SageMaker\n\nThis repository contains source code for the AWS Controllers for Kubernetes\n(ACK) service controller for Amazon SageMaker.\n\nPlease [log issues][ack-issues] and feedback on the main AWS Controllers for\nKubernetes Github project.\n\n[ack-issues]: https://github.com/aws/aws-controllers-k8s/issues\n\n## Getting Started\n\n### 1.0 ACK SageMaker Controller\n\nFor a step-by-step tutorial head over to [Machine Learning with the ACK SageMaker Controller](https://aws-controllers-k8s.github.io/community/docs/tutorials/sagemaker-example/)\n\n### 2.0 ACK Application Auto Scaling Controller\n\nFor a step-by-step tutorial on how to use Application Auto Scaling Controller with SageMaker head over to [Scale SageMaker Workloads with Application Auto Scaling](https://aws-controllers-k8s.github.io/community/docs/tutorials/autoscaling-example/)\n\n### 3.0 Samples \n\n#### 3.1 SageMaker samples\n\nHead over to the [samples directory](/samples) and follow the README to create resources. \n\n#### 3.2 Application-autoscaling samples\n\nHead over to the [samples directory in application-autoscaling controller repository](https://github.com/aws-controllers-k8s/applicationautoscaling-controller/tree/main/samples/hosting-autoscaling-on-sagemaker) and follow the README to create resources. \n\n### 4.0 Cross Region Resource Management\n\nHead over to the [Manage Resources In Multiple Regions](https://aws-controllers-k8s.github.io/community/docs/user-docs/multi-region-resource-management/)\n\n### 5.0 Cross Account Resource Management\n\nHead over to the [Manage Resources In Multiple AWS Accounts](https://aws-controllers-k8s.github.io/community/docs/user-docs/cross-account-resource-management/)\n\n### 6.0 Adopt Resources\n\nACK controllers provide the ability to “adopt” resources that were not originally created by an ACK service controller. For more information, see [Adopting Existing AWS Resources](https://aws-controllers-k8s.github.io/community/docs/user-docs/adopted-resource/) in the ACK documentation.\n\nThe following steps demonstrate how to adopt a SageMaker Endpoint.\n\nSave the following sample to a file called `adopt-endpoint-sample.yaml`.\n```yaml\napiVersion: services.k8s.aws/v1alpha1\nkind: AdoptedResource\nmetadata:\n  name: adopt-endpoint-sample\nspec:  \n  aws:\n    # resource to adopt, not created by ACK\n    nameOrID: xgboost-endpoint\n  kubernetes:\n    group: sagemaker.services.k8s.aws\n    kind: Endpoint\n    metadata:\n      # target K8s CR name\n      name: xgboost-endpoint\n```\n\nSubmit the CR:\n```sh\nkubectl apply -f adopt-endpoint-sample.yaml\n```\n\nCheck that the `ACK.Adopted` condition under `status.conditions` is `True`:\n```sh\nkubectl describe adoptedresource adopt-endpoint-sample\n```\n\nYour output should look similar to the following:\n```yaml\n---\nkind: AdoptedResource\nmetadata:\n  annotations:\n    kubectl.kubernetes.io/last-applied-configuration: '{\"apiVersion\":\"services.k8s.aws/v1alpha1\",\"kind\":\"AdoptedResource\",\"metadata\":{\"annotations\":{},\"name\":\"xgboost-endpoint\",\"namespace\":\"default\"},\"spec\":{\"aws\":{\"nameOrID\":\"xgboost-endpoint\"},\"kubernetes\":{\"group\":\"sagemaker.services.k8s.aws\",\"kind\":\"Endpoint\",\"metadata\":{\"name\":\"xgboost-endpoint\"}}}}'\n  creationTimestamp: '2021-04-27T02:49:14Z'\n  finalizers:\n  - finalizers.services.k8s.aws/AdoptedResource\n  generation: 1\n  name: adopt-endpoint-sample\n  namespace: default\n  resourceVersion: '12669876'\n  selfLink: \"/apis/services.k8s.aws/v1alpha1/namespaces/default/adoptedresources/adopt-endpoint-sample\"\n  uid: 35f8fa92-29dd-4040-9d0d-0b07bbd7ca0b\nspec:\n  aws:\n    nameOrID: xgboost-endpoint\n  kubernetes:\n    group: sagemaker.services.k8s.aws\n    kind: Endpoint\n    metadata:\n      name: xgboost-endpoint\nstatus:\n  conditions:\n  - status: 'True'\n    type: ACK.Adopted\n```\n\nCheck that the resource exists in your cluster:\n```sh\nkubectl describe endpoints.sagemaker xgboost-endpoint\n```\n\n### 7.0 Migrate resources from the old SageMaker Operators for Kubernetes\n\nFor information about migrating resources from the old [SageMaker Operators for Kubernetes](https://github.com/aws/amazon-sagemaker-operator-for-k8s) to the ACK SageMaker controller, see [Migrate resources to the new SageMaker Operators for Kubernetes](https://docs.aws.amazon.com/sagemaker/latest/dg/kubernetes-sagemaker-operators-migrate.html) in the *Amazon SageMaker Developer Guide*.\n\n## Supported SageMaker Resources\nFor a list of supported resources, refer to the [SageMaker API Reference](https://aws-controllers-k8s.github.io/community/reference/).\n\nFind the helm charts and controller images on Amazon ECR Public Gallery.\n- Helm Chart: https://gallery.ecr.aws/aws-controllers-k8s/sagemaker-chart\n\n- Controller Image: https://gallery.ecr.aws/aws-controllers-k8s/sagemaker-controller\n\n## Contributing\n\nWe welcome community contributions and pull requests.\n\nSee our [contribution guide](/CONTRIBUTING.md) for more information on how to\nreport issues, set up a development environment, and submit code.\n\nWe adhere to the [Amazon Open Source Code of Conduct][coc].\n\nYou can also learn more about our [Governance](/GOVERNANCE.md) structure.\n\n[coc]: https://aws.github.io/code-of-conduct\n\n## License\n\nThis project is [licensed](/LICENSE) under the Apache-2.0 License.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-controllers-k8s%2Fsagemaker-controller","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faws-controllers-k8s%2Fsagemaker-controller","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faws-controllers-k8s%2Fsagemaker-controller/lists"}