Skip to content

Commit

Permalink
Added helm docs to digitalocean
Browse files Browse the repository at this point in the history
  • Loading branch information
omerap12 committed Apr 26, 2024
1 parent 3e54746 commit 19f149f
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions docs/tutorials/digitalocean.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,29 @@ The environment variable `DO_TOKEN` will be needed to run ExternalDNS with Digit
## Deploy ExternalDNS

Connect your `kubectl` client to the cluster you want to test ExternalDNS with.

Begin by creating a Kubernetes secret to securely store your DigitalOcean API key. This key will enable ExternalDNS to authenticate with DigitalOcean:
```shell
kubectl create secret generic DO_TOKEN --from-literal=DO_TOKEN=YOUR_DIGITALOCEAN_API_KEY
```
Ensure to replace YOUR_DIGITALOCEAN_API_KEY with your actual DigitalOcean API key.

Then apply one of the following manifests file to deploy ExternalDNS.

## Using Helm

Create a values.yaml file to configure ExternalDNS to use DigitalOcean as the DNS provider. This file should include the necessary environment variables:
```shell
provider:
name: digitalocean
env:
- name: DO_TOKEN
valueFrom:
secretKeyRef:
name: DO_TOKEN
key: DO_TOKEN
```

### Manifest (for clusters without RBAC enabled)
```yaml
apiVersion: apps/v1
Expand Down Expand Up @@ -50,7 +71,10 @@ spec:
- --provider=digitalocean
env:
- name: DO_TOKEN
value: "YOUR_DIGITALOCEAN_API_KEY"
valueFrom:
secretKeyRef:
name: DO_TOKEN
key: DO_TOKEN
```

### Manifest (for clusters with RBAC enabled)
Expand Down Expand Up @@ -114,7 +138,10 @@ spec:
- --provider=digitalocean
env:
- name: DO_TOKEN
value: "YOUR_DIGITALOCEAN_API_KEY"
valueFrom:
secretKeyRef:
name: DO_TOKEN
key: DO_TOKEN
```


Expand Down

0 comments on commit 19f149f

Please sign in to comment.