Skip to content

Commit 2b94ff6

Browse files
authored
Merge pull request #6469 from icy/cluster-autoscaler-oci-doc-improvement
doc: cluster-autoscaler: Oracle provider: Add small security note
2 parents a2f4cac + 3c43d2f commit 2b94ff6

File tree

1 file changed

+18
-3
lines changed
  • cluster-autoscaler/cloudprovider/oci

1 file changed

+18
-3
lines changed

cluster-autoscaler/cloudprovider/oci/README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,29 @@ We recommend setting up and configuring the Cluster Autoscaler to use
2424
[Instance Principals](https://docs.oracle.com/en-us/iaas/Content/Identity/Tasks/callingservicesfrominstances.htm)
2525
to authenticate to the OCI APIs.
2626

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:
2828

2929
1: Create a compartment-level dynamic group containing the nodes (compute instances) in the cluster:
3030

3131
```
3232
All {instance.compartment.id = 'ocid1.compartment.oc1..aaaaaaaa7ey4sg3a6b5wnv5hlkjlkjadslkfjalskfjalsadfadsf'}
3333
```
3434

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+
3550
2: Create a *tenancy-level* policy to allow nodes to manage node-pools and/or instance-pools:
3651

3752
```
@@ -51,7 +66,7 @@ Allow dynamic-group acme-oci-cluster-autoscaler-dyn-grp to inspect compartments
5166

5267
### If using Workload Identity
5368

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.
5570

5671
See the [documentation](https://docs.oracle.com/en-us/iaas/Content/ContEng/Tasks/contenggrantingworkloadaccesstoresources.htm) for more details
5772

@@ -235,7 +250,7 @@ OCI config file based authentication deployment:
235250
kubectl apply -f ./cloudprovider/oci/examples/oci-ip-cluster-autoscaler-w-config.yaml
236251
```
237252
238-
OCI with node pool yamls:
253+
OCI with node pool yamls:
239254
240255
```
241256
# First substitute any values mentioned in the file and then apply

0 commit comments

Comments
 (0)