@@ -24,14 +24,29 @@ We recommend setting up and configuring the Cluster Autoscaler to use
24
24
[ Instance Principals] ( https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm )
25
25
to authenticate to the OCI APIs.
26
26
27
- The following policy provides the minimum privileges necessary for Cluster Autoscaler to run:
27
+ The following policy provides the privileges necessary for Cluster Autoscaler to run:
28
28
29
29
1: Create a compartment-level dynamic group containing the nodes (compute instances) in the cluster:
30
30
31
31
```
32
32
All {instance.compartment.id = 'ocid1.compartment.oc1..aaaaaaaa7ey4sg3a6b5wnv5hlkjlkjadslkfjalskfjalsadfadsf'}
33
33
```
34
34
35
+ Note: the matching rule in the dynamic group above includes all instances
36
+ in the specified compartment. If this is too broad for your requirements,
37
+ you can add more conditions for example
38
+
39
+ ```
40
+ All {instance.compartment.id = '...', tag.MyTagNamespace.MyNodeRole = 'MyTagValue'}
41
+ ```
42
+
43
+ here ` MyTagValue ` is the defined-tag assigned to all nodes where ` cluster-autoscaler ` pods will be scheduled
44
+ (for example, with ` nodeSeletor ` ).
45
+ See [ node-pool] ( https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contengtaggingclusterresources_tagging-oke-resources_node-tags.htm )
46
+ or [ instance-pool] ( https://docs.oracle.com/en-us/iaas/Content/Compute/Tasks/creatinginstanceconfig.htm )
47
+ and also [ managing dynamic groups] ( https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/managingdynamicgroups.htm ) .
48
+
49
+
35
50
2: Create a * tenancy-level* policy to allow nodes to manage node-pools and/or instance-pools:
36
51
37
52
```
@@ -51,7 +66,7 @@ Allow dynamic-group acme-oci-cluster-autoscaler-dyn-grp to inspect compartments
51
66
52
67
### If using Workload Identity
53
68
54
- Note: This is available to use with OKE Node Pools or OCI Managed Instance Pools with OKE Enhanced Clusters only.
69
+ Note: This is available to use with OKE Node Pools or OCI Managed Instance Pools with OKE Enhanced Clusters only.
55
70
56
71
See the [ documentation] ( https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contenggrantingworkloadaccesstoresources.htm ) for more details
57
72
@@ -235,7 +250,7 @@ OCI config file based authentication deployment:
235
250
kubectl apply -f ./cloudprovider/oci/examples/oci-ip-cluster-autoscaler-w-config.yaml
236
251
```
237
252
238
- OCI with node pool yamls:
253
+ OCI with node pool yamls:
239
254
240
255
```
241
256
# First substitute any values mentioned in the file and then apply
0 commit comments