Created
January 22, 2025 04:38
-
-
Save ravikyada/ff714ed1ecc37fc329f894774906fe24 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: external-dns | |
spec: | |
strategy: | |
type: Recreate | |
selector: | |
matchLabels: | |
app: external-dns | |
template: | |
metadata: | |
labels: | |
app: external-dns | |
spec: | |
serviceAccountName: external-dns | |
containers: | |
- name: external-dns | |
image: k8s.gcr.io/external-dns/external-dns:v0.10.2 | |
args: | |
- --source=service | |
- --source=ingress | |
- --domain-filter=external-dns-test.my-org.com # will make ExternalDNS see only the hosted zones matching provided domain, omit to process all available hosted zones | |
- --provider=aws | |
- --policy=upsert-only # would prevent ExternalDNS from deleting any records, omit to enable full synchronization | |
- --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-hostedzone-identifier | |
securityContext: | |
fsGroup: 65534 # For ExternalDNS to be able to read Kubernetes and AWS token files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment