Skip to content

Commit

Permalink
Added helm docs to ns1
Browse files Browse the repository at this point in the history
  • Loading branch information
omerap12 committed Apr 26, 2024
1 parent 83b3ed1 commit 739993c
Showing 1 changed file with 38 additions and 4 deletions.
42 changes: 38 additions & 4 deletions docs/tutorials/ns1.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,34 @@ var `NS1_APIKEY` will be needed to run ExternalDNS with NS1.

Connect your `kubectl` client to the cluster with which you want to test ExternalDNS, and then apply one of the following manifest files for deployment:

Begin by creating a Kubernetes secret to securely store your CloudFlare API key. This key will enable ExternalDNS to authenticate with CloudFlare:
```shell
kubectl create secret generic NS1_APIKEY --from-literal=NS1_API_KEY=YOUR_NS1_API_KEY
```

Ensure to replace YOUR_NS1_API_KEY with your actual NS1 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 CloudFlare as the DNS provider. This file should include the necessary environment variables:
```shell
provider:
name: ns1
env:
- name: NS1_APIKEY
valueFrom:
secretKeyRef:
name: NS1_APIKEY
key: NS1_API_KEY
```

Finally, install the ExternalDNS chart with Helm using the configuration specified in your values.yaml file:
```shell
helm upgrade --install external-dns external-dns/external-dns --version 1.14.4 --values values.yaml
```

### Manifest (for clusters without RBAC enabled)

```yaml
Expand All @@ -67,8 +95,11 @@ spec:
- --domain-filter=example.com # (optional) limit to only example.com domains; change to match the zone created above.
- --provider=ns1
env:
- name: NS1_APIKEY
value: "YOUR_NS1_API_KEY"
- name: NS1_APIKEY
valueFrom:
secretKeyRef:
name: NS1_APIKEY
key: NS1_API_KEY
```

### Manifest (for clusters with RBAC enabled)
Expand Down Expand Up @@ -131,8 +162,11 @@ spec:
- --domain-filter=example.com # (optional) limit to only example.com domains; change to match the zone created above.
- --provider=ns1
env:
- name: NS1_APIKEY
value: "YOUR_NS1_API_KEY"
- name: NS1_APIKEY
valueFrom:
secretKeyRef:
name: NS1_APIKEY
key: NS1_API_KEY
```

## Deploying an Nginx Service
Expand Down

0 comments on commit 739993c

Please sign in to comment.