Skip to content

Commit

Permalink
📝 Update documentation for adyanth#57
Browse files Browse the repository at this point in the history
  • Loading branch information
adyanth committed Dec 20, 2022
1 parent 5f10fbb commit 4dd8a76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ spec:
### TunnelBinding
This replaces the older implementation which used annotations on services to configure the endpoints. The TunnelBinding resource, inspired by RoleBinding, uses a similar structure with `subjects`, which are the target services to tunnel, and `tunnelRef` which provides details on what tunnel to use. Below is a detailed sample. Again, using `kubectl explain tunnelbinding.subjects` and `kubectl explain tunnelbinding.tunnelRef` gives the latest documentation on these.
This replaces the older implementation which used annotations on services to configure the endpoints. The TunnelBinding resource, inspired by RoleBinding, uses a similar structure with `subjects`, which are the target services to tunnel, and `tunnelRef` which provides details on what tunnel to use. Below is a detailed sample. Again, using `kubectl explain tunnelbinding.subjects` and `kubectl explain tunnelbinding.tunnelRef` gives the latest documentation on these. Below are the new config options over the service annotations.

* `tunnelRef.disableDNSUpdates`: Disables DNS record updates by the controller. You need to manually add the CNAME entries to point to the tunnel domain. The tunnel domain is of the form `tunnel-id.cfargotunnel.com`. The tunnel ID can be found using `kubectl get clustertunnel/tunnel <tunnel-name>`. You can also make use of the [proxied wildcard domains](https://blog.cloudflare.com/wildcard-proxy-for-everyone/) to CNAME `*.domain.com` to your tunnel domain so that manual DNS updates are not required.

```yaml
apiVersion: networking.cfargotunnel.com/v1alpha1
Expand All @@ -86,6 +88,7 @@ subjects:
tunnelRef:
kind: Tunnel # Or ClusterTunnel
name: k3s-tunnel
disableDNSUpdates: false
```

## Migrating from pre v0.9
Expand Down
2 changes: 1 addition & 1 deletion docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -155,4 +155,4 @@ And that's it. Head over to `whoami.example.com` to see your deployment exposed
## Deleting a tunnel
Remember the delete order while deleting the tunnel. If you delete the secrets before deleting the tunnel, the operator won't be able to clean up the tunnel from Cloudflare, since it no longer has the credentials for the same.
The correct order is to delete the tunnel, wait for it to actually get deleted (after the finalizer is removed) and then delete the secret.
The correct order is to delete the tunnel, wait for it to actually get deleted (after the finalizer is removed) and then delete the secret.

0 comments on commit 4dd8a76

Please sign in to comment.