52 lines
1.4 KiB
YAML
52 lines
1.4 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: external-dns
|
|
namespace: externaldns
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: external-dns
|
|
strategy:
|
|
type: Recreate
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: external-dns
|
|
spec:
|
|
serviceAccountName: external-dns
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
seccompProfile:
|
|
type: RuntimeDefault
|
|
containers:
|
|
- name: external-dns
|
|
image: registry.k8s.io/external-dns/external-dns:v0.13.4
|
|
args:
|
|
- --source=service
|
|
- --source=ingress
|
|
- --txt-owner-id={{ .ownerId }}
|
|
- --provider=cloudflare
|
|
{{- with (index . "domainFilter") }}
|
|
- --domain-filter={{ . }}
|
|
{{- end }}
|
|
{{- with (index . "internalDomain") }}
|
|
- --exclude-domains={{ . }}
|
|
{{- end }}
|
|
- --cloudflare-dns-records-per-page=5000
|
|
- --publish-internal-services
|
|
- --no-cloudflare-proxied
|
|
- --log-level=debug
|
|
securityContext:
|
|
allowPrivilegeEscalation: false
|
|
capabilities:
|
|
drop: [ALL]
|
|
readOnlyRootFilesystem: true
|
|
env:
|
|
- name: CF_API_TOKEN
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: cloudflare-api-token
|
|
key: api-token
|