mirror of
https://github.com/rancher/rancher-docs.git
synced 2026-09-25 12:38:05 +00:00
Update _index.md
Quick deploy roles for AWS IAM
This commit is contained in:
@@ -12,7 +12,7 @@ cloud_provider:
|
||||
|
||||
## IAM Requirements
|
||||
|
||||
The nodes used in RKE that will be running the AWS cloud provider must have at least the following IAM policy.
|
||||
The nodes used in RKE that will be running the AWS cloud provider must have at least the following IAM policy (`rancher-role.json`).
|
||||
|
||||
```json
|
||||
{
|
||||
@@ -22,7 +22,7 @@ The nodes used in RKE that will be running the AWS cloud provider must have at l
|
||||
}
|
||||
```
|
||||
|
||||
In order to use Elastic Load Balancers (ELBs) and EBS with Kubernetes, the node(s) will need to have the an IAM role with appropriate access.
|
||||
In order to use Elastic Load Balancers (ELBs) and EBS with Kubernetes, the node(s) will need to have the an IAM role with appropriate access (`rancher-policy.json`).
|
||||
|
||||
## Example Policy for IAM Role:
|
||||
|
||||
@@ -54,6 +54,15 @@ In order to use Elastic Load Balancers (ELBs) and EBS with Kubernetes, the node(
|
||||
}
|
||||
```
|
||||
|
||||
Deploy files to AWS IAM:
|
||||
|
||||
```bash
|
||||
$ aws iam create-instance-profile --instance-profile-name rancher-node
|
||||
$ aws iam create-role --role-name rancher-node --assume-role-policy-document file://rancher-role.json
|
||||
$ aws iam put-role-policy --role-name rancher-node --policy-name rancher-policy --policy-document file://rancher-policy.json
|
||||
$ aws iam add-role-to-instance-profile --instance-profile rancher-node --role-name rancher-node
|
||||
```
|
||||
|
||||
## Tagging Amazon Resources
|
||||
|
||||
Any resources used in a Kubernetes cluster with the Amazon cloud provider must be tagged with a cluster ID.
|
||||
|
||||
Reference in New Issue
Block a user