|
| 1 | + |
| 2 | +--- |
| 3 | +apiVersion: apiextensions.k8s.io/v1 |
| 4 | +kind: CustomResourceDefinition |
| 5 | +metadata: |
| 6 | + annotations: |
| 7 | + controller-gen.kubebuilder.io/version: v0.6.1 |
| 8 | + creationTimestamp: null |
| 9 | + name: notebookinstances.sagemaker.services.k8s.aws |
| 10 | +spec: |
| 11 | + group: sagemaker.services.k8s.aws |
| 12 | + names: |
| 13 | + kind: NotebookInstance |
| 14 | + listKind: NotebookInstanceList |
| 15 | + plural: notebookinstances |
| 16 | + singular: notebookinstance |
| 17 | + scope: Namespaced |
| 18 | + versions: |
| 19 | + - additionalPrinterColumns: |
| 20 | + - jsonPath: .status.failureReason |
| 21 | + name: FAILURE-REASON |
| 22 | + priority: 1 |
| 23 | + type: string |
| 24 | + - jsonPath: .status.notebookInstanceStatus |
| 25 | + name: STATUS |
| 26 | + type: string |
| 27 | + name: v1alpha1 |
| 28 | + schema: |
| 29 | + openAPIV3Schema: |
| 30 | + description: NotebookInstance is the Schema for the NotebookInstances API |
| 31 | + properties: |
| 32 | + apiVersion: |
| 33 | + description: 'APIVersion defines the versioned schema of this representation |
| 34 | + of an object. Servers should convert recognized schemas to the latest |
| 35 | + internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources' |
| 36 | + type: string |
| 37 | + kind: |
| 38 | + description: 'Kind is a string value representing the REST resource this |
| 39 | + object represents. Servers may infer this from the endpoint the client |
| 40 | + submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' |
| 41 | + type: string |
| 42 | + metadata: |
| 43 | + type: object |
| 44 | + spec: |
| 45 | + description: NotebookInstanceSpec defines the desired state of NotebookInstance. |
| 46 | + properties: |
| 47 | + acceleratorTypes: |
| 48 | + description: A list of Elastic Inference (EI) instance types to associate |
| 49 | + with this notebook instance. Currently, only one instance type can |
| 50 | + be associated with a notebook instance. For more information, see |
| 51 | + Using Elastic Inference in Amazon SageMaker (https://docs.aws.amazon.com/sagemaker/latest/dg/ei.html). |
| 52 | + items: |
| 53 | + type: string |
| 54 | + type: array |
| 55 | + additionalCodeRepositories: |
| 56 | + description: An array of up to three Git repositories to associate |
| 57 | + with the notebook instance. These can be either the names of Git |
| 58 | + repositories stored as resources in your account, or the URL of |
| 59 | + Git repositories in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) |
| 60 | + or in any other Git repository. These repositories are cloned at |
| 61 | + the same level as the default repository of your notebook instance. |
| 62 | + For more information, see Associating Git Repositories with Amazon |
| 63 | + SageMaker Notebook Instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). |
| 64 | + items: |
| 65 | + type: string |
| 66 | + type: array |
| 67 | + defaultCodeRepository: |
| 68 | + description: A Git repository to associate with the notebook instance |
| 69 | + as its default code repository. This can be either the name of a |
| 70 | + Git repository stored as a resource in your account, or the URL |
| 71 | + of a Git repository in AWS CodeCommit (https://docs.aws.amazon.com/codecommit/latest/userguide/welcome.html) |
| 72 | + or in any other Git repository. When you open a notebook instance, |
| 73 | + it opens in the directory that contains this repository. For more |
| 74 | + information, see Associating Git Repositories with Amazon SageMaker |
| 75 | + Notebook Instances (https://docs.aws.amazon.com/sagemaker/latest/dg/nbi-git-repo.html). |
| 76 | + type: string |
| 77 | + directInternetAccess: |
| 78 | + description: "Sets whether Amazon SageMaker provides internet access |
| 79 | + to the notebook instance. If you set this to Disabled this notebook |
| 80 | + instance will be able to access resources only in your VPC, and |
| 81 | + will not be able to connect to Amazon SageMaker training and endpoint |
| 82 | + services unless your configure a NAT Gateway in your VPC. \n For |
| 83 | + more information, see Notebook Instances Are Internet-Enabled by |
| 84 | + Default (https://docs.aws.amazon.com/sagemaker/latest/dg/appendix-additional-considerations.html#appendix-notebook-and-internet-access). |
| 85 | + You can set the value of this parameter to Disabled only if you |
| 86 | + set a value for the SubnetId parameter." |
| 87 | + type: string |
| 88 | + instanceType: |
| 89 | + description: The type of ML compute instance to launch for the notebook |
| 90 | + instance. |
| 91 | + type: string |
| 92 | + kmsKeyID: |
| 93 | + description: The Amazon Resource Name (ARN) of a AWS Key Management |
| 94 | + Service key that Amazon SageMaker uses to encrypt data on the storage |
| 95 | + volume attached to your notebook instance. The KMS key you provide |
| 96 | + must be enabled. For information, see Enabling and Disabling Keys |
| 97 | + (https://docs.aws.amazon.com/kms/latest/developerguide/enabling-keys.html) |
| 98 | + in the AWS Key Management Service Developer Guide. |
| 99 | + type: string |
| 100 | + lifecycleConfigName: |
| 101 | + description: 'The name of a lifecycle configuration to associate with |
| 102 | + the notebook instance. For information about lifestyle configurations, |
| 103 | + see Step 2.1: (Optional) Customize a Notebook Instance (https://docs.aws.amazon.com/sagemaker/latest/dg/notebook-lifecycle-config.html).' |
| 104 | + type: string |
| 105 | + notebookInstanceName: |
| 106 | + description: The name of the new notebook instance. |
| 107 | + type: string |
| 108 | + roleARN: |
| 109 | + description: "When you send any requests to AWS resources from the |
| 110 | + notebook instance, Amazon SageMaker assumes this role to perform |
| 111 | + tasks on your behalf. You must grant this role necessary permissions |
| 112 | + so Amazon SageMaker can perform these tasks. The policy must allow |
| 113 | + the Amazon SageMaker service principal (sagemaker.amazonaws.com) |
| 114 | + permissions to assume this role. For more information, see Amazon |
| 115 | + SageMaker Roles (https://docs.aws.amazon.com/sagemaker/latest/dg/sagemaker-roles.html). |
| 116 | + \n To be able to pass this role to Amazon SageMaker, the caller |
| 117 | + of this API must have the iam:PassRole permission." |
| 118 | + type: string |
| 119 | + rootAccess: |
| 120 | + description: "Whether root access is enabled or disabled for users |
| 121 | + of the notebook instance. The default value is Enabled. \n Lifecycle |
| 122 | + configurations need root access to be able to set up a notebook |
| 123 | + instance. Because of this, lifecycle configurations associated with |
| 124 | + a notebook instance always run with root access even if you disable |
| 125 | + root access for users." |
| 126 | + type: string |
| 127 | + securityGroupIDs: |
| 128 | + description: The VPC security group IDs, in the form sg-xxxxxxxx. |
| 129 | + The security groups must be for the same VPC as specified in the |
| 130 | + subnet. |
| 131 | + items: |
| 132 | + type: string |
| 133 | + type: array |
| 134 | + subnetID: |
| 135 | + description: The ID of the subnet in a VPC to which you would like |
| 136 | + to have a connectivity from your ML compute instance. |
| 137 | + type: string |
| 138 | + tags: |
| 139 | + description: An array of key-value pairs. You can use tags to categorize |
| 140 | + your AWS resources in different ways, for example, by purpose, owner, |
| 141 | + or environment. For more information, see Tagging AWS Resources |
| 142 | + (https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html). |
| 143 | + items: |
| 144 | + description: Describes a tag. |
| 145 | + properties: |
| 146 | + key: |
| 147 | + type: string |
| 148 | + value: |
| 149 | + type: string |
| 150 | + type: object |
| 151 | + type: array |
| 152 | + volumeSizeInGB: |
| 153 | + description: The size, in GB, of the ML storage volume to attach to |
| 154 | + the notebook instance. The default value is 5 GB. |
| 155 | + format: int64 |
| 156 | + type: integer |
| 157 | + required: |
| 158 | + - instanceType |
| 159 | + - notebookInstanceName |
| 160 | + - roleARN |
| 161 | + type: object |
| 162 | + status: |
| 163 | + description: NotebookInstanceStatus defines the observed state of NotebookInstance |
| 164 | + properties: |
| 165 | + ackResourceMetadata: |
| 166 | + description: All CRs managed by ACK have a common `Status.ACKResourceMetadata` |
| 167 | + member that is used to contain resource sync state, account ownership, |
| 168 | + constructed ARN for the resource |
| 169 | + properties: |
| 170 | + arn: |
| 171 | + description: 'ARN is the Amazon Resource Name for the resource. |
| 172 | + This is a globally-unique identifier and is set only by the |
| 173 | + ACK service controller once the controller has orchestrated |
| 174 | + the creation of the resource OR when it has verified that an |
| 175 | + "adopted" resource (a resource where the ARN annotation was |
| 176 | + set by the Kubernetes user on the CR) exists and matches the |
| 177 | + supplied CR''s Spec field values. TODO(vijat@): Find a better |
| 178 | + strategy for resources that do not have ARN in CreateOutputResponse |
| 179 | + https://github.com/aws/aws-controllers-k8s/issues/270' |
| 180 | + type: string |
| 181 | + ownerAccountID: |
| 182 | + description: OwnerAccountID is the AWS Account ID of the account |
| 183 | + that owns the backend AWS service API resource. |
| 184 | + type: string |
| 185 | + required: |
| 186 | + - ownerAccountID |
| 187 | + type: object |
| 188 | + conditions: |
| 189 | + description: All CRS managed by ACK have a common `Status.Conditions` |
| 190 | + member that contains a collection of `ackv1alpha1.Condition` objects |
| 191 | + that describe the various terminal states of the CR and its backend |
| 192 | + AWS service API resource |
| 193 | + items: |
| 194 | + description: Condition is the common struct used by all CRDs managed |
| 195 | + by ACK service controllers to indicate terminal states of the |
| 196 | + CR and its backend AWS service API resource |
| 197 | + properties: |
| 198 | + lastTransitionTime: |
| 199 | + description: Last time the condition transitioned from one status |
| 200 | + to another. |
| 201 | + format: date-time |
| 202 | + type: string |
| 203 | + message: |
| 204 | + description: A human readable message indicating details about |
| 205 | + the transition. |
| 206 | + type: string |
| 207 | + reason: |
| 208 | + description: The reason for the condition's last transition. |
| 209 | + type: string |
| 210 | + status: |
| 211 | + description: Status of the condition, one of True, False, Unknown. |
| 212 | + type: string |
| 213 | + type: |
| 214 | + description: Type is the type of the Condition |
| 215 | + type: string |
| 216 | + required: |
| 217 | + - status |
| 218 | + - type |
| 219 | + type: object |
| 220 | + type: array |
| 221 | + failureReason: |
| 222 | + description: If status is Failed, the reason it failed. |
| 223 | + type: string |
| 224 | + notebookInstanceStatus: |
| 225 | + description: The status of the notebook instance. |
| 226 | + type: string |
| 227 | + stoppedByControllerMetadata: |
| 228 | + description: The URL that you use to connect to the Jupyter notebook |
| 229 | + that is running in your notebook instance. |
| 230 | + type: string |
| 231 | + url: |
| 232 | + description: The URL that you use to connect to the Jupyter notebook |
| 233 | + that is running in your notebook instance. |
| 234 | + type: string |
| 235 | + required: |
| 236 | + - ackResourceMetadata |
| 237 | + - conditions |
| 238 | + type: object |
| 239 | + type: object |
| 240 | + served: true |
| 241 | + storage: true |
| 242 | + subresources: |
| 243 | + status: {} |
| 244 | +status: |
| 245 | + acceptedNames: |
| 246 | + kind: "" |
| 247 | + plural: "" |
| 248 | + conditions: [] |
| 249 | + storedVersions: [] |
0 commit comments