Update _index.md

Quick deploy roles for AWS IAM
This commit is contained in:
Negash
2019-11-25 23:55:03 +03:00
committed by GitHub
parent 23b52f53d3
commit 057e022e32
@@ -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.