Skip to content

Commit

Permalink
Add configuration option for non-eks with Helm
Browse files Browse the repository at this point in the history
  • Loading branch information
pier-oliviert committed Jun 27, 2024
1 parent dd06678 commit 8fd1cf6
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion docs/tutorials/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ kubectl create --filename externaldns-no-rbac.yaml \

### When using clusters with RBAC enabled

Update the `values.yaml` file you created earlier to include the annotations to link the Role ARN you created before.
If you're using EKS, you can update the `values.yaml` file you created earlier to include the annotations to link the Role ARN you created before.

```yaml
provider:
Expand All @@ -487,6 +487,26 @@ serviceAccount:
eks.amazonaws.com/role-arn: arn:aws:iam::${ACCOUNT_ID}:role/${EXTERNALDNS_ROLE_NAME:-"external-dns"}
```
 
If you need to provide credentials directly using a secret (ie. You're not using EKS), you can change the `values.yaml` file to include volume and volume mounts.

```yaml
provider:
name: aws
env:
- name: AWS_SHARED_CREDENTIALS_FILE
value: /.aws/credentials
extraVolumes:
- name: aws-credentials
secret:
secretName: external-dns
extraVolumeMounts:
- name: aws-credentials
mountPath: /.aws
readOnly: true
```

When ready deploy, update your Helm installation:

```shell
Expand Down

0 comments on commit 8fd1cf6

Please sign in to comment.