-
Notifications
You must be signed in to change notification settings - Fork 134
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
113 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Configuring external DNS servers | ||
|
||
[external-dns](https://github.com/kubernetes-incubator/external-dns) project can be used to configure external DNS servers for Voyager managed ingresses. | ||
|
||
## LoadBalancer Ingress | ||
|
||
For a [LoadBalancer](/docs/concepts/ingress-types/loadbalancer.md) type Ingress, apply `"external-dns.alpha.kubernetes.io/hostname"` annotation on the **service** that exposes HAProxy pods. This service should have a name like `voyager-{ingress-name}` in the same namespace of the Ingress object. Since, Voyager uses its own CRD for Ingress, `external-dns` project must use the service to discover loadbalancer ip. | ||
|
||
```yaml | ||
apiVersion: voyager.appscode.com/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: test-ingress-voyager | ||
namespace: vdimov-dev | ||
annotations: | ||
ingress.appscode.com/annotations-service: | | ||
{ | ||
"external-dns.alpha.kubernetes.io/hostname" : "voyager.example.com,voyager-1.example.com,voyager-2.example.com" | ||
} | ||
ingress.appscode.com/replicas: '2' | ||
spec: | ||
rules: | ||
- host: voyager.example.com | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: web | ||
servicePort: '80' | ||
``` | ||
## NodePort Ingress | ||
`external-dns` does not support [NodePort](/docs/concepts/ingress-types/nodeport.md) ingress. | ||
|
||
|
||
## HostPort Ingress | ||
|
||
[HostPort](/docs/concepts/ingress-types/hostport.md) type Ingress is supported by external-dns, since version [v0.5.0-alpha.1](https://github.com/kubernetes-incubator/external-dns/releases/tag/v0.5.0-alpha.1). Here, apply `"external-dns.alpha.kubernetes.io/hostname"` annotation on the HAProxy **pods**. | ||
|
||
```yaml | ||
apiVersion: voyager.appscode.com/v1beta1 | ||
kind: Ingress | ||
metadata: | ||
name: test-ingress-voyager | ||
namespace: vdimov-dev | ||
annotations: | ||
ingress.appscode.com/type: HostPort | ||
ingress.appscode.com/annotations-pod: | | ||
{ | ||
"external-dns.alpha.kubernetes.io/hostname" : "voyager.example.com,voyager-1.example.com,voyager-2.example.com" | ||
} | ||
ingress.appscode.com/replicas: '2' | ||
spec: | ||
rules: | ||
- host: voyager.example.com | ||
http: | ||
paths: | ||
- backend: | ||
serviceName: web | ||
servicePort: '80' | ||
``` | ||
|
||
## Internal Ingress | ||
|
||
[Internal](/docs/concepts/ingress-types/internal.md) ingress is not accessible from outside a cluster. Hence, there is nothing to configure in external DNS servers. |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.