From c65835c6a4676cfb235ee8b5c353ec3a5e200e9e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lauri=20V=C3=B5sandi?= Date: Wed, 14 Dec 2022 18:46:00 +0200 Subject: [PATCH] Update external-dns --- external-dns/README.md | 4 ++-- external-dns/application.yml | 16 +++++++++++++++- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/external-dns/README.md b/external-dns/README.md index 3cc478c..33f03b8 100644 --- a/external-dns/README.md +++ b/external-dns/README.md @@ -2,9 +2,9 @@ Before applying replace the secret with the actual one. For debugging add `- --log-level=debug`: - ``` -kubectl apply -n external-dns -f external-dns.yml +wget https://raw.githubusercontent.com/kubernetes-sigs/external-dns/master/docs/contributing/crd-source/crd-manifest.yaml -O crd.yml +kubectl apply -n external-dns -f application.yml -f crd.yml ``` Insert TSIG secret: diff --git a/external-dns/application.yml b/external-dns/application.yml index aac0be0..39f0c08 100644 --- a/external-dns/application.yml +++ b/external-dns/application.yml @@ -24,6 +24,20 @@ rules: - get - list - watch +- apiGroups: + - externaldns.k8s.io + resources: + - dnsendpoints + verbs: + - get + - watch + - list +- apiGroups: + - externaldns.k8s.io + resources: + - dnsendpoints/status + verbs: + - update --- apiVersion: v1 kind: ServiceAccount @@ -63,7 +77,7 @@ spec: serviceAccountName: external-dns containers: - name: external-dns - image: k8s.gcr.io/external-dns/external-dns:v0.10.2 + image: k8s.gcr.io/external-dns/external-dns:v0.13.1 envFrom: - secretRef: name: tsig-secret