forked from rancher/rancher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
route53_template.go
34 lines (33 loc) · 969 Bytes
/
route53_template.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package globaldns
var Route53DeploymentTemplate = `
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: {{.deploymentName}}
spec:
strategy:
type: Recreate
template:
metadata:
labels:
app: {{.deploymentName}}
spec:
serviceAccountName: external-dns
containers:
- name: {{.deploymentName}}
image: registry.opensource.zalan.do/teapot/external-dns:latest
env:
- name: AWS_SECRET_ACCESS_KEY
value: {{.awsSecretKey}}
- name: AWS_ACCESS_KEY_ID
value: {{.awsAccessKey}}
args:
- --source=service
- --source=ingress
- --domain-filter={{.route53Domain}}
- --provider=aws
- --aws-zone-type=public # only look at public hosted zones (valid values are public, private or no value for both)
- --registry=txt
- --txt-owner-id=my-identifier
- --log-level=debug
- --publish-internal-services`