@@ -17,7 +17,7 @@ To use these feature, ensure you enable the [feature gates](https://github.com/a
17
17
This feature allows users to adopt AWS resources by specifying the adoption policy as an annotation ` services.k8s.aws/adoption-policy ` .
18
18
This annotation currenlty supports two values, ` adopt ` and ` adopt-or-create ` .
19
19
` adopt ` adoption policy strictly adopts resources as they are in AWS, and it is highly recommended to provide an empty spec (as it will be overriden
20
- if adoption is successful) and ` services.k8s.aws/adoption-fields ` annotation with all the fields necessary for to retrieve the resource from AWS
20
+ if adoption is successful) and ` services.k8s.aws/adoption-fields ` annotation with all the fields necessary to retrieve the resource from AWS
21
21
(this would be the ` name ` for EKS cluster, ` queueURL ` for SQS queues, ` vpcID ` for VPCs, or ` arn ` for SNS Topic, etc.)
22
22
Here's an example for how to adopt an EKS cluster:
23
23
@@ -44,17 +44,26 @@ fields necessary for a find/create. If the read operation required field is in t
44
44
the `adoption-fields` annotation will be used to retrieve such fields.
45
45
If the adoption is successful for `adopt-or-create`, the controller will attempt updating
46
46
your AWS resource, to ensure your ACK manifest is the source of truth.
47
- Here's a sample manifests :
48
- S3 Bucket
47
+ Here are some sample manifests :
48
+ EKS Cluster
49
49
` ` ` yaml
50
- apiVersion: s3 .services.k8s.aws/v1alpha1
51
- kind: Bucket
50
+ apiVersion: eks .services.k8s.aws/v1alpha1
51
+ kind: Cluster
52
52
metadata:
53
- name: mybucket
53
+ name: my-cluster
54
54
annotations:
55
- services.k8s.aws/adoption-policy: adopt-or-create
55
+ services.k8s.aws/adoption-policy: " adopt-or-create"
56
56
spec:
57
- name: mybucket
57
+ name: my-cluster
58
+ roleARN: arn:role:123456789/myrole
59
+ version: "1.32"
60
+ resourcesVPCConfig:
61
+ endpointPrivateAccess: true
62
+ endpointPublicAccess: true
63
+ subnetIDs:
64
+ - subnet-312ensdj2313dnsa2
65
+ - subnet-1e323124ewqe43213
66
+
58
67
` ` `
59
68
VPC
60
69
` ` ` yaml
0 commit comments