-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #270 from gardener/routing-policy
Weighted routing policy support for AWS Route53
- Loading branch information
Showing
398 changed files
with
29,831 additions
and
4,848 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
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,39 @@ | ||
apiVersion: dns.gardener.cloud/v1alpha1 | ||
kind: DNSEntry | ||
metadata: | ||
annotations: | ||
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line | ||
#dns.gardener.cloud/class: garden | ||
name: instance-a | ||
namespace: default | ||
spec: | ||
dnsName: "my.service.example.com" | ||
ttl: 120 | ||
targets: | ||
- instance-a.service.example.com | ||
# routingPolicy is current only supported for AWS Route53 or Google CloudDNS | ||
routingPolicy: | ||
type: weighted | ||
setIdentifier: instance-a | ||
parameters: | ||
weight: "90" | ||
--- | ||
apiVersion: dns.gardener.cloud/v1alpha1 | ||
kind: DNSEntry | ||
metadata: | ||
annotations: | ||
# If you are delegating the DNS management to Gardener Shoot DNS Service, uncomment the following line | ||
#dns.gardener.cloud/class: garden | ||
name: instance-b | ||
namespace: default | ||
spec: | ||
dnsName: "my.service.example.com" | ||
ttl: 120 | ||
targets: | ||
- instance-b.service.example.com | ||
# routingPolicy is current only supported for AWS Route53 or Google CloudDNS | ||
routingPolicy: | ||
type: weighted | ||
setIdentifier: instance-b | ||
parameters: | ||
weight: "10" |
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,30 @@ | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
annotations: | ||
dns.gardener.cloud/dnsnames: '*' | ||
# If you are delegating the DNS management to Gardener, uncomment the following line (see https://gardener.cloud/documentation/guides/administer_shoots/dns_names/) | ||
#dns.gardener.cloud/class: garden | ||
# If you are delegating the certificate management to Gardener, uncomment the following line (see https://gardener.cloud/documentation/guides/administer_shoots/x509_certificates/) | ||
#cert.gardener.cloud/purpose: managed | ||
# routing-policy annotation provides the `.spec.routingPolicy` section as JSON | ||
# Note: Currently only supported for aws-route53 or google-clouddns (see https://github.com/gardener/external-dns-management/tree/master/docs/aws-route53#weighted-routing-policy) | ||
dns.gardener.cloud/routing-policy: '{"type": "weighted", "setIdentifier": "my-id", "parameters": {"weight": "10"}}' | ||
name: test-ingress-weighted-routing-policy | ||
namespace: default | ||
spec: | ||
rules: | ||
- host: test.ingress.my-dns-domain.com | ||
http: | ||
paths: | ||
- backend: | ||
service: | ||
name: my-service | ||
port: | ||
number: 9000 | ||
path: / | ||
pathType: Prefix | ||
tls: | ||
- hosts: | ||
- test.ingress.my-dns-domain.com | ||
#secretName: my-cert-secret-name |
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,21 @@ | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
annotations: | ||
dns.gardener.cloud/dnsnames: echo.my-dns-domain.com | ||
dns.gardener.cloud/ttl: "500" | ||
# If you are delegating the DNS Management to Gardener, uncomment the following line (see https://gardener.cloud/documentation/guides/administer_shoots/dns_names/) | ||
#dns.gardener.cloud/class: garden | ||
# routing-policy annotation provides the `.spec.routingPolicy` section as JSON | ||
# Note: Currently only supported for aws-route53 or google-clouddns (see https://github.com/gardener/external-dns-management/tree/master/docs/aws-route53#weighted-routing-policy) | ||
dns.gardener.cloud/routing-policy: '{"type": "weighted", "setIdentifier": "my-id", "parameters": {"weight": "10"}}' | ||
name: test-service-weighted | ||
namespace: default | ||
spec: | ||
ports: | ||
- name: http | ||
port: 80 | ||
protocol: TCP | ||
targetPort: 8080 | ||
sessionAffinity: None | ||
type: LoadBalancer |
Large diffs are not rendered by default.
Oops, something went wrong.
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
Oops, something went wrong.